mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix ApplePay product page variants
This commit is contained in:
parent
3d293058fb
commit
889df4d88c
3 changed files with 14 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue