Add GooglePay shipping support.

This commit is contained in:
Pedro Silva 2023-10-13 14:36:11 +01:00
parent 799e06a7dd
commit 8526adbcee
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
6 changed files with 101 additions and 64 deletions

View file

@ -32,9 +32,9 @@ class ApplepayButton {
this.selectedShippingMethod = []
this.nonce = document.getElementById('woocommerce-process-checkout-nonce').value
this.log = (message) => {
this.log = function() {
if ( this.buttonConfig.is_debug ) {
console.log('[ApplePayButton] ' + message, this);
console.log('[ApplePayButton]', ...arguments);
}
}
}