Skip to main content
Use standalone authentication when you want to separate authentication from authorization. In the standalone authentication flow, you make a payment request that specifies only authentication. When authentication is successfully completed, you receive the 3D Secure 2 authentication data which you can use to authorize the payment with Adyen or another payment service provider (PSP).

Requirements

Before you begin, take into account the following requirements, limitations, and preparations.

How it works

With standalone authentication, you perform the 3D Secure 2 authentication independently of the payment authorization flow.
  1. Make a payment request, where you use the authenticationOnly parameter to specify that the request is only for performing authentication.
  2. In the /payments response, use the action object to determine the authentication flow you need to perform.
  3. Perform the required authentication flow.
  4. Get the 3D Secure 2 authentication data.
  5. Use the authentication data to authorize the payment with Adyen, or with another PSP or acquirer.
Keep in mind that authentication data is valid for a different time period for each scheme, and you can not use it after it expires.

Make a payment request for authentication

A payment request to perform standalone authentication is similar to making a /payments request for a payment authorization with your standard 3D Secure 2 integration. You add the authenticationOnly parameter to specify that you only want to authenticate the shopper. To perform standalone authentication:
  1. In your POST /payments request, specify: This is the required icon. Required for all transactions.
    This is the conditionally required icon. Required for particular setups, or issuers and card schemes.
    This is the recommended icon. Recommended for all transactions, but not required.
    We recommend that you do the following to prevent authorization refusals: Example standalone authentication request for web with raw card data

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

  2. In the /payments response, check the resultCode:
    • If the result code is AuthenticationNotRequired , You can proceed to authorize the payment with Adyen by making a standard /payments request, or with another PSP or acquirer.
    • If you get a 3D Secure 2 authentication result code, proceed to perform the authentication.
** If you authorize the payment that you authenticate with Adyen with a different PSP, it is recommended to include additional acquirer-related data. Get the following details from your acquirer. These details are part of the 3D Secure 2 enrollment process between your acquirer and card schemes. If you are unable to get these details from your acquirer, contact our Support Team. Make a POST /payments request containing the parameters required for the standalone authentication, together with the acquirer data listed above. Example standalone authentication request with additional acquirer-related data

Perform the authentication

  1. In the /payments response, you receive action.type: ThreeDS2. Use the action.subtype object to determine your next steps. The way to handle the action object for the standalone authentication flow is the same as handling it for your native or redirect 3D Secure implementation.
  2. When authentication is completed, submit the authentication result in a /payments/details request, including authenticationData.authenticationOnly: true.
    Below is an example /payments/details request:
    /payments/details request

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

  3. In the /payments/details response, check the following fields:
    • resultCode: If the authentication process has finished, you receive AuthenticationFinished. If an error occurs during the authentication flow, and the authentication process is not completed, you receive Refused.
    • threeDS2Result: The object that contains the authentication data that you need to authorize the payment following a successful authentication.
    • threeDS2Result.transStatus: Indicates the result of the authentication. The value Y means that authentication is successful. If the authentication went through the redirect flow, the result of the authentication is in additionalData.threeDAuthenticatedResponse.
    Example /payments/details response after authentication is completed

Get the 3D Secure 2 authentication data

After a successful authentication, you get a resultCode with the value of AuthenticationFinished in the /payments/details response. The response contains threeDS2Result object, that contains the authentication data produced by a Merchant Plug-in (MPI). Some schemes do not provide all fields; the Applies to column shows which schemes provide each field. Some of these fields are also returned in the threeDAuthenticatedResponse object, but we recommend to use the threeDS2Result object. **

Possible ‘transStatusReason’ values

Authorize the payment

Use the 3D Secure 2 authentication produced by the MPI to authorize the payment with Adyen, or with another PSP. For information on authorizing with other PSPs, refer to their documentation. For payment authorizations, keep the following in mind:
  • You cannot reuse the authentication data across PSPs. For example, if you send a request to authorize the payment using the data to a PSP and it fails, you can not pass the same data to another PSP.
  • Make sure to use the authentication data before it expires.

Authorize the payment with Adyen

To authorize the payment with Adyen, make a POST  /payments request, including:
  1. The standard parameters required to make a payment. Make sure to pass the scheme that authenticated the transaction in the paymentMethod.brand object for co-badged cards.
  2. The authentication data you received in the additionalData or threeDS2Result object of the /payments/details response. Send this data in the mpiData object. The fields you need to send in your request map to the threeDS2Result fields as shown in the table below.
  3. For Cartes Bancaires, include the required additional fields from the additionalData and the threeDS2RequestData objects. It is possible that you do not receive all Cartes Bancaires fields for each transaction, these fields are only required when they are returned in the /payments/details response that contains the authentication data.
Example /payments request including authentication data
You will receive an Authorised resultCode if the payment authorization was successful. See Result codes for a complete list of possible responses. /payments response

Authentication data expiry

Authentication data and cryptograms expire depending on card schemes. This means that you can no longer use the authentication data after it expires.

Authentication not required reasons

You get an AuthenticationNotRequired result code in the /payments response when a transaction doesn’t require 3D Secure authentication. If you get this code, you can proceed with the standard payment flow with Adyen, or another PSP. Below is the list of possible authenticationNotRequiredReason values:

Testing

Use our Testing 3D Secure 2 authentication guide to test your integration. In this flow, you receive an AUTHENTICATION webhook that informs you of the outcome of the authentication.

See also