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
the requirements on how shipping & billing address should be used with the Afterpay payments are clarified
it's checked if shipping address is added to the payment request whenever possible and if it doesn't, such an enhancement is added to deferred intent creation UPE scripts
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