Merge pull request #2391 from woocommerce/PCP-3120-apple-pay-payment-fails-with-validation-errors-when-shipping-disabled-in-woo-commerce-and-or-no-shipping-method-configured

Apple Pay: Fix when shipping is disabled (3120)
This commit is contained in:
Emili Castells 2024-07-09 14:54:07 +02:00 committed by GitHub
commit 12d39b9d4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View file

@ -24,7 +24,7 @@ class BaseHandler {
}
shippingAllowed() {
return true;
return this.buttonConfig.product.needsShipping;
}
transactionInfo() {

View file

@ -12,10 +12,6 @@ class PayNowHandler extends BaseHandler {
return true;
}
shippingAllowed() {
return false;
}
transactionInfo() {
return new Promise(async (resolve, reject) => {
const data = this.ppcpConfig['pay_now'];