mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix Apple Pay when shipping is disabled
This commit is contained in:
parent
caea2ceb3e
commit
6a2c433484
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