Add feature flag for AppSwitch

This commit is contained in:
Himad M 2025-07-15 10:49:12 -04:00
parent 2c59a006f5
commit 4acdda7cd8
No known key found for this signature in database
GPG key ID: 5FC769E9888A7B98
5 changed files with 22 additions and 0 deletions

View file

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