This article explains how to perform 3DS authentication at the time of card tokenization (subscription creation).__ To perform authentication at the time of on-demand charging, please review this guide.
To guarantee the security of your merchant, Kushki fraud prevention team will request you to activate the 3DS authentication when tokenizing cards to receive recurring payments, either one click or scheduled payments.By having the 3DS authentication service active, your customers will be requested to complete an extra verification step (from now on, challenge) with the card issuer to complete certain transactions. This challenge usually consists of an OTP sent by the bank to your customer’s e-mail address or telephone number.
Important
Please note that this authentication takes place at the time a subscription is completed and not at the time of payment.
Check below for the availability of 3DS validation with subscriptions according to the affiliation and integration models available on Kushki.
Once the customer fills out the form and clicks on Save Card, Kushki will validate if 3DS authentication is required for the transaction. If this validation is required, your customer will be displayed a challenge whose experience may vary depending on the brand and the issuing bank. When your customer completes the challenge, they will be able to finalize the card registration.The 3DS authentication flow (recurring charge creation) with Kushki is shown below:
Follow our instructions for Kushki.js described in our guide to accept recurring payments.Now, before sending the data to the end-point in your back-end, we must perform the 3DS validation with the card issuer.When 3DS is enabled, the response from the requestSubscriptionToken() method will be as shown below:
You can find the description of these variables below:
Parameter
Type
Description
authRequired
Boolean
This field indicates whether a 3DS challenge is required or not.
acsURL
URL
Refers to the URL of the challenge page that the user must pass (Access Control System).
specificationVersion
String
Refers to the applicable 3DS version.
authenticationTransactionId
String
Transaction ID verified from brands.
paReq
String
Stands for the Payer Authentication Request. It is a base64 encoded field containing your merchant and cardholder information that is sent to the issuer for authentication. Note: In case of testing in UAT environment, sandbox must be sent.
You will receive the token and the variables secureService, secureId and the security object (specified in the table above).
5.
Use the requestValidate3DS method to do the 3DS validation, as explained below.
Once you receive the Token response with the structure above, you must send the security object to Kushki by using the requestValidate3DS method:
If the value of the authRequired variable is equal to true, the 3DS validation modal will be presented and your customer will then receive the value to enter by email or text message.If the value of the authRequired variable is equal to false, the 3DS validation modal will not be presented.The response you will receive in the callback function will be:
{
isValid:true}
In case of error, the response of the callback function will be something like:
{"message":"error-message","code":"error-code"}
You will receive the authentication response in the charge. If the authentication is declined, you will receive a 322 code and any of the other subcodes specified in the Error codes guide.
The cardholder will have up to a maximum of 3 retries to complete the 3DS authentication.
When calling the requestToken() method to request a token, if a 3DS rule exists and the condition is met, the requestToken() method will display the modal so that the client can enter the 3DS validation data.
Note: Remember to set the isSubscription property with the value of true to generate a subscription. If the initCardToken() method was configured as a subscription, you will need to call the create a recurring charge endpoint from your backend, rather than making a one-time payment with the token.
If the validation was incorrect, you may receive one of the following error codes:
{ code: "E004", message: "Error en solicitud de JWT" }
If the merchant has a 3DS rule enabled and there was an error requesting the JWT, code E004 will be returned. Please try again; If the error persists, contact Kushki support.
If the merchant has a 3DS rule enabled and there was an error in 3DS authentication, the code E005 will be returned. Please try again making sure you enter the data correctly for 3DS validation.
{ code: "E006", message: "Error en solicitud de validación de token" }
If the merchant has a 3DS rule enabled and there was an error in the 3DS validation session, code E006 will be returned. Please try again making sure you enter the data correctly for 3DS validation; If the error persists, contact Kushki support.
See the reference for more information on 3DS validation.
Below you will find some test cards that you can use in test mode (UAT) to make sure your integration is ready. Use them with any CVV, enter any future expiration date and once the 3DS modal appears, enter 1234 as the validation code.
Transaction approved with 3DS authentication required:
4456528080389860
4456529267234200
4456529165328302
4456524869770255
4456523340069956
Transaction approved without 3DS validation:
4456540000000063
4456543371713314
4456541982068615
4456541249811088
Important
To enable 3DS in test mode in your merchant, it is required to have an additionalconfiguration performed by Kushki.