Automattic / woocommerce-payments

Accept payments via credit card. Manage transactions within WordPress.
https://wordpress.org/plugins/woocommerce-payments/
Other
175 stars 69 forks source link

Align shipping data addition to Afterpay payments in blocks checkout scripts #7815

Open timur27 opened 11 months ago

timur27 commented 11 months ago

Describe the issue

Afterpay requires shipping data during the payment processing, and this logic was added here for legacy UPE & split UPE. Since deferred UPE behaves similarly to legacy cards in some ways, it doesn't execute this logic. There seems to be the fallback implemented, which takes billing data during payment processing if shipping is unavailable. It covers the use cases when there's no shipping, but it also might "cover" the scenario when deferred UPE doesn't add those details. This is the reason why we might not see the errors.

Acceptance criteria

timur27 commented 11 months ago

Heisenberg will have a look.