mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
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:
commit
12d39b9d4a
2 changed files with 1 additions and 5 deletions
|
@ -24,7 +24,7 @@ class BaseHandler {
|
|||
}
|
||||
|
||||
shippingAllowed() {
|
||||
return true;
|
||||
return this.buttonConfig.product.needsShipping;
|
||||
}
|
||||
|
||||
transactionInfo() {
|
||||
|
|
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue