From fcf8c6747f5841bdb38214b7be2300f637fdc47b Mon Sep 17 00:00:00 2001 From: John Shields Date: Wed, 18 Oct 2023 17:23:58 +0100 Subject: [PATCH] PP-9916 Change test card number in Stripe test accounts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update ‘Mock card numbers’ template to test for ‘stripe’ account and display UK issued test card. --- app/views/dashboard/demo-payment/mock-card-details.njk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/dashboard/demo-payment/mock-card-details.njk b/app/views/dashboard/demo-payment/mock-card-details.njk index 55436aeace..b4ba992f48 100644 --- a/app/views/dashboard/demo-payment/mock-card-details.njk +++ b/app/views/dashboard/demo-payment/mock-card-details.njk @@ -1,5 +1,13 @@ {% extends "../../layout.njk" %} +{% set card %} +{% if currentGatewayAccount.payment_provider === 'stripe' %} +

4000058260000005

+{% else %} +

4000056655665556

+{% endif %} +{% endset %} + {% block pageTitle %} Mock card numbers for demo payment - {{currentService.name}} {{currentGatewayAccount.full_type}} - GOV.UK Pay {% endblock %} @@ -21,7 +29,7 @@ {{ govukInsetText({ - html: '

4000056655665556

' + html: card }) }}