diff --git a/src/app/locale/translations/en.json b/src/app/locale/translations/en.json index 55875ccabb..2adbf95297 100644 --- a/src/app/locale/translations/en.json +++ b/src/app/locale/translations/en.json @@ -161,6 +161,7 @@ "amazon_name_text": "Amazon Pay", "barclaycard_continue_action": "Continue", "bluesnap_v2_continue_action": "Continue", + "bolt_continue_action": "Continue with Bolt", "braintreevisacheckout_continue_action": "Continue with Visa Checkout", "ccavenuemars_description_text": "Checkout with CCAvenue", "chasepay_continue_action": "Continue with Chase Pay", diff --git a/src/app/payment/PaymentSubmitButton.spec.tsx b/src/app/payment/PaymentSubmitButton.spec.tsx index 27f7aca529..26007a0346 100644 --- a/src/app/payment/PaymentSubmitButton.spec.tsx +++ b/src/app/payment/PaymentSubmitButton.spec.tsx @@ -67,6 +67,15 @@ describe('PaymentSubmitButton', () => { .toEqual(languageService.translate('payment.amazon_continue_action')); }); + it('renders button with special label for Bolt', () => { + const component = mount( + + ); + + expect(component.text()) + .toEqual(languageService.translate('payment.bolt_continue_action')); + }); + it('renders button with special label for Barclaycard', () => { const component = mount( diff --git a/src/app/payment/PaymentSubmitButton.tsx b/src/app/payment/PaymentSubmitButton.tsx index 4b957a7725..80d75c209f 100644 --- a/src/app/payment/PaymentSubmitButton.tsx +++ b/src/app/payment/PaymentSubmitButton.tsx @@ -17,6 +17,10 @@ const PaymentSubmitButtonText: FunctionComponent = return ; } + if (methodId === PaymentMethodId.Bolt) { + return ; + } + if (methodGateway === PaymentMethodId.Barclaycard) { return ; } diff --git a/src/app/payment/paymentMethod/PaymentMethod.tsx b/src/app/payment/paymentMethod/PaymentMethod.tsx index 9cea65be07..8ff3cc610d 100644 --- a/src/app/payment/paymentMethod/PaymentMethod.tsx +++ b/src/app/payment/paymentMethod/PaymentMethod.tsx @@ -134,6 +134,7 @@ const PaymentMethodComponent: FunctionComponent