Enable server-side callback via feature flag

This commit is contained in:
Alex P. 2025-06-20 15:14:11 +03:00
parent 6691ee5a21
commit 60d4ea2208
No known key found for this signature in database
GPG key ID: 54487A734A204D71
7 changed files with 84 additions and 46 deletions

View file

@ -144,7 +144,10 @@ class Renderer {
};
// Check the condition and add the handler if needed
if ( this.shouldEnableShippingCallback() ) {
if (
this.shouldEnableShippingCallback() &&
! this.defaultSettings.server_side_shipping_callback.enabled
) {
options.onShippingOptionsChange = ( data, actions ) => {
const shippingOptionsChange =
! this.isVenmoButtonClickedWhenVaultingIsEnabled(