mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Enable server-side callback via feature flag
This commit is contained in:
parent
6691ee5a21
commit
60d4ea2208
7 changed files with 84 additions and 46 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue