mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Enable the Shipping Callback handlers
This commit is contained in:
parent
f3d7640480
commit
802c13cf8e
1 changed files with 3 additions and 3 deletions
|
@ -102,10 +102,10 @@ class Renderer {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// Check the condition and add the onShippingOptionsChange handler if needed
|
// Check the condition and add the handler if needed
|
||||||
if (this.shouldHandleShippingInPaypal(venmoButtonClicked)) {
|
if (this.shouldHandleShippingInPaypal(venmoButtonClicked)) {
|
||||||
options.onShippingOptionsChange = (data, actions) => null;
|
options.onShippingOptionsChange = (data, actions) => handleShippingOptionsChange(data, actions, this.defaultSettings);
|
||||||
options.onShippingAddressChange = (data, actions) => null;
|
options.onShippingAddressChange = (data, actions) => handleShippingAddressChange(data, actions, this.defaultSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue