Enable the Shipping Callback handlers

This commit is contained in:
Narek Zakarian 2024-05-27 17:46:02 +04:00
parent f3d7640480
commit 802c13cf8e
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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;