Fix Apple Pay when shipping is disabled

This commit is contained in:
Daniel Dudzic 2024-07-03 16:39:46 +02:00
parent caea2ceb3e
commit 6a2c433484
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
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'];