Fix ApplePay nonce

This commit is contained in:
Pedro Silva 2023-10-26 16:33:00 +01:00
parent 4fbc47f1cf
commit 2b9ac48616
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
4 changed files with 37 additions and 19 deletions

View file

@ -25,7 +25,7 @@ class ApplepayButton {
this.updated_contact_info = []
this.selectedShippingMethod = []
this.nonce = document.getElementById('woocommerce-process-checkout-nonce').value
this.nonce = document.getElementById('woocommerce-process-checkout-nonce')?.value
this.log = function() {
if ( this.buttonConfig.is_debug ) {