diff --git a/packages/paypal-commerce-integration/src/paypal-commerce/paypal-commerce-button-strategy.ts b/packages/paypal-commerce-integration/src/paypal-commerce/paypal-commerce-button-strategy.ts index a85dbe304c..a2e21b4f00 100644 --- a/packages/paypal-commerce-integration/src/paypal-commerce/paypal-commerce-button-strategy.ts +++ b/packages/paypal-commerce-integration/src/paypal-commerce/paypal-commerce-button-strategy.ts @@ -104,9 +104,10 @@ export default class PayPalCommerceButtonStrategy implements CheckoutButtonStrat state.getPaymentMethodOrThrow(methodId); const { isHostedCheckoutEnabled, isAppSwitchEnabled } = paymentMethod.initializationData || {}; + console.log('IS BUY NOW FLOW', isBuyNowFlow); const defaultCallbacks = { - ...(!isBuyNowFlow && + ...( this.isPaypalCommerceAppSwitchEnabled(methodId) && { appSwitchWhenAvailable: true, }),