Fix ApplePay product page variants

This commit is contained in:
Pedro Silva 2023-10-25 18:40:36 +01:00
parent 3d293058fb
commit 889df4d88c
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
3 changed files with 14 additions and 15 deletions

View file

@ -33,20 +33,7 @@ class ApplepayButton {
}
}
//PRODUCT DETAIL PAGE
this.refreshContextData();
if (this.context === 'product') {
jQuery(document).on('appleclick', () => {
(this.onshippingcontactselected())({
shippingContact: {
locality: 'New York',
postalCode: '10001',
countryCode: 'US'
}
});
});
}
}
init(config) {