Skip to content

Commit cdf578b

Browse files
author
FranciscoOnt
committed
feat(checkout): INT-1916 Make barclaycard compatible with offsite strategy
1 parent eb7f8f6 commit cdf578b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/payment/payment-strategy-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default class PaymentStrategyRegistry extends Registry<PaymentStrategy, P
6969

7070
const { clientSidePaymentProviders } = config.paymentSettings;
7171

72-
if (!clientSidePaymentProviders || paymentMethod.gateway === 'adyen') {
72+
if (!clientSidePaymentProviders || paymentMethod.gateway === 'adyen' || paymentMethod.gateway === 'barclaycard') {
7373
return false;
7474
}
7575

src/payment/strategies/offsite/offsite-payment-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ export default class OffsitePaymentStrategy implements PaymentStrategy {
5555
return false;
5656
}
5757

58-
return payment.gatewayId === 'adyen' || payment.methodId === 'ccavenuemars';
58+
return payment.gatewayId === 'adyen' || payment.gatewayId === 'barclaycard' || payment.methodId === 'ccavenuemars';
5959
}
6060
}

0 commit comments

Comments
 (0)