3D Secure
Gateway-level 3D Secure authentication for Pay.com.js, the mobile SDKs, and server-to-server card integrations.
3D Secure (3DS) verifies a customer's identity with their issuing bank during a card transaction. Pay.com runs agnostic 3DS at the gateway layer, independent of your acquirers. Because authentication is not tied to a single processor, you can retry a declined authorization on a fallback acquirer using the same 3DS credentials without re-challenging the customer.
Pay.com supports both frictionless 3DS2 flows and interactive challenges (such as a banking app prompt or SMS code).
When 3DS runs
Pay.com runs 3DS when strong customer authentication applies to the payment or
one of your risk rules asks for it. Change that with
payment_method_options.card.request_threed_secure, which asks for 3DS
(automatic or challenge) or skips it (none). See
Request 3DS for the modes, the flow
indicator, and the ECI values you accept.
Pay.com.js and mobile SDK integration
When you use Pay.com.js (Universal checkout or Headless checkout) or the iOS, Android, or React Native SDK, Pay.com manages the entire 3D Secure flow automatically:
- Detects whether a card requires 3DS based on your configuration and the issuer's requirements.
- Renders the issuer's challenge window and captures customer interaction.
- Completes authentication and returns the final payment result without manual redirects.
Server-to-server API integration
When you process card payments directly through the API, pass browser metadata
in authentication_context, inside the payment method object in source_data
(source_data.card.authentication_context for raw card details, or
source_data.token.authentication_context for a card token).
If the issuer requires a challenge, the charge or hold returns
requires_authentication. If not, a charge finalizes as succeeded and a hold
as requires_capture. A decline returns HTTP 400 with
error.type: "payment_method_error" and a decline_code.
To show the challenge, create a
linked authentication session
for the charge or hold. Render its url in an iframe (at least 600 × 400 px) on
your page, or redirect the customer to it. After the challenge, the confirm
setting (default true) decides the final status:
- requires_authentication
- Customer completes 3DS challenge
- succeeded,
confirm: true, approved - failed,
confirm: true, declined - requires_confirmation,
confirm: false- succeeded, You confirm it
- failed, Confirmation declined
For the step-by-step API implementation (including request and response
payloads, iframe, redirect, and Pay.com.js modal challenges, and both
confirm: true and confirm: false flows), see
Create a charge with 3DS. For a hold,
see Create a hold, which covers its
challenge and confirmation.
Standalone authentication
To authenticate a cardholder before creating a charge (for example, during
subscription enrollment or deferred billing), run a standalone authentication
session outside the charge lifecycle. Pay.com returns the eci and cavv
values so you can attach them to a later charge. See
Standalone 3DS authentication.
External 3DS (external MPI)
If you authenticate cards through a third-party Merchant Plug-In (MPI), pass
the authentication values in source_data.card.three_ds,
source_data.source.three_ds, or source_data.token.three_ds on
POST /v1/charges or POST /v1/holds. Include eci and cavv, plus
ds_trans_id for 3DS 2.x or xid for 3DS 1.0.0. See
External MPI.
Exemptions, soft declines, and merchant-initiated payments
Some payments can proceed without authentication, while others need authentication without the customer present.
- SCA exemptions: Ask the issuer to exempt a payment inside 3DS or during authorization.
- Soft decline loop: Retry an exempted payment with 3DS when the issuer declines it for missing authentication.
- Merchant-initiated authentication: Authenticate a payment you start without the customer using 3RI.
Next steps
Choose the 3D Secure guide for your integration:
- Request 3DS: Choose when 3DS runs and which results you accept.
- Create a charge with 3DS: Full server-to-server challenge and confirmation walkthrough.
- Standalone 3DS authentication: Authenticate a card before creating a charge.
- External MPI: Pass authentication results from a third-party 3DS provider.
- Webhooks: Listen for
authentication_session.authenticated,authentication_session.failed,charge.requires_confirmation,charge.succeeded, andcharge.failed(requires_authenticationis returned synchronously in the create response).