Skip to content

Commit

Permalink
Clarify requirement for 3D Secure in sandbox accounts
Browse files Browse the repository at this point in the history
With this change, we are explaining in the UI that 3D Secure is not available
in sandbox accounts despite being a requirement for some card types.

This is needed because the normal hint displayed on production for cards that
require 3DS, would link users to a page that is not available on sandbox
accounts.

Further information in JIRA.

https://payments-platform.atlassian.net/browse/PP-12593
  • Loading branch information
marcotranchino committed May 7, 2024
1 parent 6d89ecb commit 8ffb297
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/payment-types/get-index.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ function formatCardsForTemplate (allCards, acceptedCards, threeDSEnabled) {

if (card.requires3ds && !threeDSEnabled) {
formatted.disabled = true
formatted.hint = {
formatted.hint = process.env.NODE_ENV !== 'production' ? {
html: `3D Secure, required to accept ${card.label}, is not available in Sandbox accounts.`
} :
{
html: `You must <a class="govuk-link" href="/3ds">enable 3D Secure</a> to accept ${card.label}`
}
}
Expand Down

0 comments on commit 8ffb297

Please sign in to comment.