Skip to content

Commit 02c968d

Browse files
feat(payment): PAYPAL-5941 test
1 parent 2685387 commit 02c968d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/paypal-commerce-integration/src/paypal-commerce/paypal-commerce-button-strategy.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export default class PayPalCommerceButtonStrategy implements CheckoutButtonStrat
9494
containerId: string,
9595
methodId: string,
9696
paypalcommerce: PayPalCommerceButtonInitializeOptions,
97-
isBuyNowFlow?: boolean,
9897
): void {
9998
const { buyNowInitializeOptions, style, onComplete, onEligibilityFailure } = paypalcommerce;
10099
console.log('RENDER');
@@ -107,8 +106,7 @@ export default class PayPalCommerceButtonStrategy implements CheckoutButtonStrat
107106
paymentMethod.initializationData || {};
108107

109108
const defaultCallbacks = {
110-
...(!isBuyNowFlow &&
111-
this.isPaypalCommerceAppSwitchEnabled(methodId) && {
109+
...(this.isPaypalCommerceAppSwitchEnabled(methodId) && {
112110
appSwitchWhenAvailable: true,
113111
}),
114112
createOrder: () => this.paypalCommerceIntegrationService.createOrder('paypalcommerce'),

0 commit comments

Comments
 (0)