-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1839 from alphagov/pp-13038-toggle-corporate-exem…
…ptions-button PP-13064 Allow toggling corporate exemptions in Worldpay accounts
- Loading branch information
Showing
6 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/web/modules/gateway_accounts/worldpay_corporate_exemptions.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% from "govuk/components/radios/macro.njk" import govukRadios %} | ||
{% from "govuk/components/button/macro.njk" import govukButton %} | ||
{% extends "layout/layout.njk" %} | ||
|
||
{% set isTestData = account and not (account.type === "live") %} | ||
|
||
{% block main %} | ||
<h1 class="govuk-heading-m">Worldpay 3DS Corporate Exemptions</h1> | ||
|
||
<div> | ||
<a href="/gateway_accounts/{{ account.gateway_account_id }}" class="govuk-back-link">Gateway account ({{ account.gateway_account_id }})</a> | ||
</div> | ||
|
||
<p class="govuk-body">With corporate exemptions, we can request that a payment be exempt from SCA (Strong Customer Authentication) because the cardholder is working in a secure corporate environment.</p> | ||
<p class="govuk-body">When enabled, we will request a corporate exemption for any payments made using a corporate card (determined by the card number) when authorising.</p> | ||
<p class="govuk-body">Unlike other exemptions, if our request for a corporate exemption is rejected by the bank and the payment is declined, we will not try again without requesting an exemption (soft declines are treated as hard declines).</p> | ||
<p class="govuk-body">This feature will be requested by a service through support.</p> | ||
|
||
<form method="POST" action="/gateway_accounts/{{ account.gateway_account_id }}/worldpay_corporate_exemptions"> | ||
|
||
{{ govukRadios({ | ||
name: "enabled", | ||
items: [ | ||
{ | ||
value: "enabled", | ||
text: "Turn on Corporate Exemptions", | ||
checked: enabled | ||
}, | ||
{ | ||
value: "disabled", | ||
text: "Turn off Corporate Exemptions", | ||
checked: not enabled | ||
} | ||
] | ||
}) }} | ||
|
||
{{ govukButton({ | ||
text: "Save" | ||
}) | ||
}} | ||
|
||
<input type="hidden" name="_csrf" value="{{ csrf }}"> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters