mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge branch 'trunk' into PCP-3320-separate-google-pay-button-for-classic-checkout
This commit is contained in:
commit
74f319dd82
4 changed files with 14 additions and 5 deletions
|
@ -141,6 +141,7 @@ class Renderer {
|
|||
// Check the condition and add the handler if needed
|
||||
if ( this.defaultSettings.should_handle_shipping_in_paypal ) {
|
||||
options.onShippingOptionsChange = ( data, actions ) => {
|
||||
let shippingOptionsChange =
|
||||
! this.isVenmoButtonClickedWhenVaultingIsEnabled(
|
||||
venmoButtonClicked
|
||||
)
|
||||
|
@ -150,8 +151,11 @@ class Renderer {
|
|||
this.defaultSettings
|
||||
)
|
||||
: null;
|
||||
|
||||
return shippingOptionsChange
|
||||
};
|
||||
options.onShippingAddressChange = ( data, actions ) => {
|
||||
let shippingAddressChange =
|
||||
! this.isVenmoButtonClickedWhenVaultingIsEnabled(
|
||||
venmoButtonClicked
|
||||
)
|
||||
|
@ -161,6 +165,8 @@ class Renderer {
|
|||
this.defaultSettings
|
||||
)
|
||||
: null;
|
||||
|
||||
return shippingAddressChange
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue