mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #2266 from woocommerce/PCP-3177-shipping-callback-doesnt-work-in-2-7-1-rc-5
Enable the Shipping Callback handlers (3177)
This commit is contained in:
commit
b54bb7f807
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)) {
|
||||
options.onShippingOptionsChange = (data, actions) => null;
|
||||
options.onShippingAddressChange = (data, actions) => null;
|
||||
options.onShippingOptionsChange = (data, actions) => handleShippingOptionsChange(data, actions, this.defaultSettings);
|
||||
options.onShippingAddressChange = (data, actions) => handleShippingAddressChange(data, actions, this.defaultSettings);
|
||||
}
|
||||
|
||||
return options;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue