Skip to content

Commit

Permalink
Merge pull request #2492 from woocommerce/PCP-3517-apple-pay-shipping…
Browse files Browse the repository at this point in the history
…-callback-is-not-working

Apple Pay: Fix the shipping callback (3517)
  • Loading branch information
Dinamiko authored Aug 7, 2024
2 parents ff4cd0c + bc58fce commit 3d5c15b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions modules/ppcp-applepay/resources/js/Context/BaseHandler.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import ErrorHandler from '../../../../ppcp-button/resources/js/modules/ErrorHandler';
import CartActionHandler from '../../../../ppcp-button/resources/js/modules/ActionHandler/CartActionHandler';
import { isPayPalSubscription } from '../../../../ppcp-blocks/resources/js/Helper/Subscription';

class BaseHandler {
constructor( buttonConfig, ppcpConfig ) {
Expand All @@ -24,7 +23,7 @@ class BaseHandler {
}

shippingAllowed() {
return this.buttonConfig.product.needsShipping;
return this.buttonConfig.product.needShipping;
}

transactionInfo() {
Expand Down Expand Up @@ -76,13 +75,6 @@ class BaseHandler {
document.querySelector( '.woocommerce-notices-wrapper' )
);
}

errorHandler() {
return new ErrorHandler(
this.ppcpConfig.labels.error.generic,
document.querySelector( '.woocommerce-notices-wrapper' )
);
}
}

export default BaseHandler;

0 comments on commit 3d5c15b

Please sign in to comment.