mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 04:58:28 +08:00
Add feature flag for AppSwitch
This commit is contained in:
parent
2c59a006f5
commit
4acdda7cd8
5 changed files with 22 additions and 0 deletions
|
@ -401,6 +401,7 @@ export const PayPalComponent = ( {
|
|||
const shouldEnableAppSwitch = () => {
|
||||
// AppSwitch should only be enabled in Pay Now flows with server side shipping callback.
|
||||
return (
|
||||
config.scriptData.appswitch.enabled &&
|
||||
! config.scriptData.final_review_enabled &&
|
||||
config.scriptData.server_side_shipping_callback.enabled
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue