Skip to content

Commit

Permalink
PP-9916 Change test card number in Stripe test accounts
Browse files Browse the repository at this point in the history
Update ‘Mock card numbers’ template to test for ‘stripe’ account and display UK issued test card.
  • Loading branch information
JFSGDS committed Oct 18, 2023
1 parent a8bfea6 commit fcf8c67
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/views/dashboard/demo-payment/mock-card-details.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{% extends "../../layout.njk" %}

{% set card %}
{% if currentGatewayAccount.payment_provider === 'stripe' %}
<p class="govuk-!-font-size-24 govuk-!-font-weight-bold">4000<span class="govuk-!-padding-left-3 govuk-!-padding-right-3">0582</span><span class="govuk-!-padding-right-3">6000</span>0005</p>
{% else %}
<p class="govuk-!-font-size-24 govuk-!-font-weight-bold">4000<span class="govuk-!-padding-left-3 govuk-!-padding-right-3">0566</span><span class="govuk-!-padding-right-3">5566</span>5556</p>
{% endif %}
{% endset %}

{% block pageTitle %}
Mock card numbers for demo payment - {{currentService.name}} {{currentGatewayAccount.full_type}} - GOV.UK Pay
{% endblock %}
Expand All @@ -21,7 +29,7 @@

{{
govukInsetText({
html: '<p class="govuk-!-font-size-24 govuk-!-font-weight-bold">4000<span class="govuk-!-padding-left-3 govuk-!-padding-right-3">0566</span><span class="govuk-!-padding-right-3">5566</span>5556</p>'
html: card
})
}}

Expand Down

0 comments on commit fcf8c67

Please sign in to comment.