Skip to main content
This page is part of the Payments Library Guides. Using the REST API instead? See REST API 3D Secure.
Prerequisites: Complete the Library Setup with a 3DS-capable PSP. 3D Secure (3DS) adds an authentication step during card payments. The Payments Library handles 3DS challenges automatically. No additional code required.
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

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