Skip to main content
This page is part of the Payments Library Guides. For 3D Secure in backend-initiated flows, see REST API 3D Secure.
Prerequisites: Complete the Library Setup with a 3DS-capable PSP, and configure your 3DS merchant details on the CardPay eWallet account. 3D Secure (3DS) adds an authentication step during card payments. The Payments Library handles 3DS challenges automatically, so no additional code is required on your side. Configuration is still required: see the prerequisites above.
Enabling Perform 3Ds? on a CardPay eWallet account without supplying your own 3DS merchant details will cause every 3DS transaction to fail. Orchestra has no default 3DS merchant. See 3DS Merchant Details.
For general setup instructions, see Library Setup.

How It Works

  1. Card form opens
  2. Customer enters card details
  3. Library detects 3DS requirement based on CardPay eWallet specification and PSP integration status
  4. Authentication challenge displays (popup or iframe)
  5. Customer completes verification (password, SMS code, biometric, or app confirmation)
  6. Orchestra completes the requested operation
  7. On completion, the transaction results, including the 3DS data, are returned to the client, ready to be sent to your server for validation
The library handles the entire flow automatically.

When to Trigger 3DS?

You may want to use 3D Secure on your transactions in any of the following use cases:
We recommend using 3DS to authenticate all transactions, even when not required. 3DS provides merchants with liability shift protection and peace of mind knowing that the payer has been fully and properly authenticated.

Supported Payment Methods

3DS Data in Results

After successful 3DS authentication and completion of the transaction, the result includes authentication data in tokenAndMaskedCardModel.threeDS:

ThreeDS Fields

ECI Values

The ECI indicates the authentication result and liability:

Handling 3DS Failures

If 3DS authentication fails, the payment will not complete. The callback receives a result with clientSuccess: false:

PSP Requirements

3DS requires a payment processor that supports 3DS connections. Not all PSPs support 3DS for all card types. See the list of integrations that support 3DS. When configuring your PSP in Orchestra, ensure:
  1. PSP supports 3DS (check with your provider)
  2. 3DS credentials are configured in your PSP account
  3. Your own 3DS merchant details (acquirer BIN, MID and MCC per card brand) are entered on the CardPay eWallet account

Frictionless vs. Challenge Flow

3DS 2.x supports two flows: The library handles both flows automatically. Frictionless authentication completes without user interaction when the issuer’s risk assessment allows it.

Supported Payment Methods

CardPay, ApplePay, GooglePay, PayPal, BankPay, UPI

Result Handling

Parse and validate payment results

Library Reference

Full API reference

PSP Setup

Configure payment processor