mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Apple Pay: Fix the shipping callback
This commit is contained in:
parent
a152027772
commit
bc58fce8a0
1 changed files with 1 additions and 9 deletions
|
@ -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 ) {
|
||||
|
@ -24,7 +23,7 @@ class BaseHandler {
|
|||
}
|
||||
|
||||
shippingAllowed() {
|
||||
return this.buttonConfig.product.needsShipping;
|
||||
return this.buttonConfig.product.needShipping;
|
||||
}
|
||||
|
||||
transactionInfo() {
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue