Skip to main content
Postman collection Implementation examples
Node.js
      The Card Component handles 3D Secure redirect flow to complete the required 3D Secure authentication. Follow the instructions on this page if your integration uses the /payments or /payments/details endpoint, and Checkout API 49 or later.

If your integration uses only the /sessions endpoint, you do not need additional configuration for 3D Secure. If you are using Checkout API 46 or earlier, follow instructions in the 3D Secure 2 integration guide for v46 or earlier.
To handle card payments with redirect 3D Secure authentication:
  1. Get additional shopper details in your payment form.
  2. Make a payment request with additional 3D Secure parameters.
  3. Handle the redirect.
  4. Show the payment result.

Requirements

This page assumes you have already built a Card Component integration. If you are using 3D Secure for PSD2 compliance, read our comprehensive PSD2 SCA guide.

Step 1: Get additional shopper details in your payment form

For higher authentication rates, we strongly recommend that you collect the shopper’s email address, cardholder name, billing address, and IP address for payments with 3D Secure authentication. Get the shopper’s email outside of the Card Component because it doesn’t have a configuration to include shopper email in the payment form. To get the cardholder name and billing address in your payment form, include the following when creating an instance of the Card Component:
  • hasHolderName: true. This shows the input field for the cardholder name.
  • holderNameRequired: true. This makes the cardholder name a required field.
  • billingAddressRequired: true. This shows the billing address input fields.

Step 2: Make a payment

  1. When you make a payment request, include the following additional 3D Secure 2 parameters. See additional 3D Secure 2 parameters that we recommend to include in your request to increase authentication performance in our API reference. 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.

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

  2. In the response, check if there is an action object.
Your next steps depend on whether the response contains an action object, and on the action.type.A sample /payments response with action.type: redirect:/payments response