diff --git a/resources/js/blocks/ApplePayButtonComponent.js b/resources/js/blocks/ApplePayButtonComponent.js index 6e020588..6d05bea7 100644 --- a/resources/js/blocks/ApplePayButtonComponent.js +++ b/resources/js/blocks/ApplePayButtonComponent.js @@ -43,11 +43,8 @@ export const ApplePayButtonComponent = ({cart, extensions}) => { simplifiedContact: updatedContactInfo, 'woocommerce-process-checkout-nonce': nonce, }, - complete: (jqXHR, textStatus) => { - }, success: (applePayShippingMethodUpdate, textStatus, jqXHR) => { let response = applePayShippingMethodUpdate.data - console.log(response) selectedShippingMethod = event.shippingMethod if (applePayShippingMethodUpdate.success === false) { response.errors = createAppleErrors(response.errors) @@ -72,8 +69,6 @@ export const ApplePayButtonComponent = ({cart, extensions}) => { 'woocommerce-process-checkout-nonce': nonce, shippingMethod: selectedShippingMethod, }, - complete: (jqXHR, textStatus) => { - }, success: (applePayShippingContactUpdate, textStatus, jqXHR) => { let response = applePayShippingContactUpdate.data updatedContactInfo = event.shippingContact @@ -100,8 +95,6 @@ export const ApplePayButtonComponent = ({cart, extensions}) => { validationUrl: applePayValidateMerchantEvent.validationURL, 'woocommerce-process-checkout-nonce': nonce, }, - complete: (jqXHR, textStatus) => { - }, success: (merchantSession, textStatus, jqXHR) => { if (merchantSession.success === true) { session.completeMerchantValidation(JSON.parse(merchantSession.data))