3D Secure is currently supported for US-based merchants only. Canada support is coming soon.
Authenticate a buyer from your server, with no Finix code in your checkout page.
Use this integration when your server drives checkout, or when you can't add a JavaScript library to your front end. It's also the route for mobile apps until the Finix iOS and Android SDKs support 3D Secure.
You need the following:
- The card to authenticate as a Payment Instrument ID. If you have a token from a tokenization form, use it to create a Payment Instrument first.
- The ID of the Merchant the payment is processed under.
- An HTTPS URL on your site to return the buyer to.
Create the session when the buyer is ready to pay, by calling POST /3d_secure_sessions.
This request must originate from your server, not the browser. A client-accessible endpoint is an endpoint anyone can call, which exposes your integration to BIN enumeration attacks and allows an attacker to forge a session and attach it to a payment.
The request accepts the following fields:
| Field | Description |
|---|---|
amount | Required. The amount to authenticate, in cents. This must match the amount you charge. |
currency | Required. The three-letter ISO currency code for the payment. |
merchant_id | Required. The ID of the Merchant the payment is processed under. |
payment_instrument_id | Required for this flow. The ID of the Payment Instrument to authenticate. |
redirect_url | Required for this flow. The HTTPS URL to return the buyer to after authentication. Finix passes it to the hosted page as a redirect parameter. |
tags | Key-value data to store on the session, such as your own order number. |
- Sandbox serverhttps://finix.sandbox-payments-api.com/3d_secure_sessions
curl -i -X POST \
-u USfdccsr1Z5iVbXDyYt7hjZZ:313636f3-fac2-45a7-bff7-a334b93e7bda \
https://finix.sandbox-payments-api.com/3d_secure_sessions \
-H 'Content-Type: application/json' \
-H 'Finix-Version: 2022-02-01' \
-d '{
"amount": 92169,
"currency": "USD",
"merchant_id": "MUmfEGv5bMpSJ9k5TFRUjkmm",
"payment_instrument_id": "PI6iQcTtJNCS8GZAVKYi5Ueb",
"redirect_url": "https://example.com/3d-secure/return",
"tags": {
"info": "Create 3DS Session with Payment Instrument"
}
}'{
"id": "3d_secure_session_9hK2mNp4T761RBv8qwLDYc",
"created_at": "2026-08-13T16:41:12.884210Z",
"updated_at": "2026-08-13T16:41:13.102994Z",
"3d_secure_authentication": null,
"3d_secure_authentication_session_id": "tds_visa_5c21a4de91b7",
"3d_secure_authentication_url": "https://3ds.evervault.com/?team=team_77f6348bb6fd&app=app_ecd782a41696&session=tds_visa_5c21a4de91b7&redirect=https%3A%2F%2Fexample.com%2F3d-secure%2Freturn",
"3d_secure_version": null,
"amount": 92169,
"authentication_type": null,
"currency": "USD",
"failure_code": null,
"failure_message": null,
"merchant_id": "MUmfEGv5bMpSJ9k5TFRUjkmm",
"payment_instrument_id": "PI6iQcTtJNCS8GZAVKYi5Ueb",
"redirect_url": "https://example.com/3d-secure/return",
"state": "PENDING",
"tags": {
"info": "Create 3DS Session with Payment Instrument"
}
}The session normally starts in the PENDING state, and the five-minute expiry starts at the created_at timestamp. If the card is not enrolled in 3DS, the session can return FAILED immediately — check state before sending the buyer to the authentication URL. In that case, read failure_code and failure_message for the reason.
The buyer authenticates with their bank on a page Finix hosts, then returns to your site. Confirm the outcome from your server before you charge anything.
The session carries a 3d_secure_authentication_url. Open it in the buyer's browser, either by redirecting the whole page or by loading the URL in a frame embedded in your checkout.
Treat the URL as opaque. Send the buyer to it exactly as Finix returned it, rather than constructing or parsing it yourself.
What the buyer sees depends on what the issuer decides:
- Low-risk payments authenticate in the background, and the buyer returns without seeing anything.
- Otherwise the issuer presents a challenge, such as a one-time passcode or a prompt in the buyer's banking app.
Once authentication finishes, the buyer returns to your redirect_url with two query parameters appended:
https://example.com/3d-secure/return?status=success&session=3d_secure_session_9hK2mNp4T761RBv8qwLDYc| Parameter | Description |
|---|---|
status | How the authentication flow ended. One of success, failure, or error. |
session | The ID of the 3D Secure Session. |
The status parameter has its own lowercase values and is not the session state. It reports how the browser flow ended, not what the issuer decided.
The query parameters arrive through the buyer's browser, where they can be edited, so retrieve the session from your server to confirm what actually happened.
- Sandbox serverhttps://finix.sandbox-payments-api.com/3d_secure_sessions/{3d_secure_session_id}
curl -i -X GET \
-u USfdccsr1Z5iVbXDyYt7hjZZ:313636f3-fac2-45a7-bff7-a334b93e7bda \
https://finix.sandbox-payments-api.com/3d_secure_sessions/3d_secure_session_f3fG3Zj8K958MTP5vpXAXX \
-H 'Finix-Version: 2022-02-01'{
"id": "3d_secure_session_9hK2mNp4T761RBv8qwLDYc",
"created_at": "2026-08-13T16:41:12.884210Z",
"updated_at": "2026-08-13T16:41:58.774391Z",
"3d_secure_authentication": {
"cardholder_authentication": "BwABBJQ1AgAAAAAgJDUCAAAAAAA=",
"electronic_commerce_indicator": "AUTHENTICATED",
"transaction_id": "EaOMucALHQqLAEGAgk"
},
"3d_secure_authentication_session_id": "tds_visa_5c21a4de91b7",
"3d_secure_authentication_url": "https://3ds.evervault.com/?team=team_77f6348bb6fd&app=app_ecd782a41696&session=tds_visa_5c21a4de91b7&redirect=https%3A%2F%2Fexample.com%2F3d-secure%2Freturn",
"3d_secure_version": "2.2.0",
"amount": 92169,
"authentication_type": "CHALLENGE",
"currency": "USD",
"failure_code": null,
"failure_message": null,
"merchant_id": "MUmfEGv5bMpSJ9k5TFRUjkmm",
"payment_instrument_id": "PI6iQcTtJNCS8GZAVKYi5Ueb",
"redirect_url": "https://example.com/3d-secure/return",
"state": "SUCCEEDED",
"tags": {
"info": "Create 3DS Session with Payment Instrument"
}
}The ID of the 3D Secure Session.
Timestamp of when the object was created.
Timestamp of when the object was last updated.
The authentication values the card network returns. Pass this object, or the ID of this 3D Secure Session, when you create the Transfer or Authorization.
This field is null until the authentication process finishes. It stays null when state is FAILED.
The ID of the authentication session with the 3D Secure vendor. This is not the ID of the 3D Secure Session resource.
The hosted URL where the buyer completes authentication. Redirect the buyer to this URL to run the redirect flow. This field is null when you create the session from a token_id and complete the authentication with Finix.js.
The version of the 3D Secure protocol used for the authentication.
The amount that was authenticated, in the smallest unit of the currency (for example, 1000 = $10.00).
How the buyer was authenticated. This field is populated when state is SUCCEEDED.
FRICTIONLESS: The issuer authenticated the buyer from the data in the request, without presenting a challenge.CHALLENGE: The issuer presented the buyer with a challenge, such as a one-time passcode.ATTEMPT: The card network authenticated on the issuer's behalf.
ISO 4217 3-letter currency code.
The code for why the authentication process could not finish. This field is populated when state is FAILED.
A human-readable description of why the authentication process could not finish.
The ID of the Merchant the payment processes under.
The ID of the Payment Instrument that was authenticated. This field is null when you create the session from a token_id.
The URL the buyer returns to after they finish authentication. This field is null when you create the session from a token_id.
The state of the authentication process. A state of SUCCEEDED means the process finished. It does not mean the buyer was authenticated: a session where the issuer declined to authenticate the buyer also ends in SUCCEEDED. Read 3d_secure_authentication.electronic_commerce_indicator for the authentication result.
PENDING: The authentication process has not finished.SUCCEEDED: The authentication process finished and returned a result.FAILED: The authentication process could not finish. Seefailure_codeandfailure_message.
Include up to 50 key: value pairs to annotate requests with custom metadata.
- Maximum character length for individual
keysis 40. - Maximum character length for individual
valuesis 500. (For example,order_number: 25,item_type: produce,department: sales)
A SUCCEEDED state means authentication ran to completion, not that the buyer was authenticated. Read electronic_commerce_indicator to find out whether liability shifts.
Buyers close the tab mid-challenge, lose connectivity, or never return to your site at all. In each of those cases no query parameters reach you, so subscribe to the session webhook and treat it as the record of what happened. For more information, see 3D Secure Session webhooks.
Reference the completed session as 3d_secure_session on the Transfer or Authorization. Finix reads the authentication values from the session and sends them to the card network with the payment.
curl https://finix.sandbox-payments-api.com/transfers \
-H "Content-Type: application/json" \
-H 'Finix-Version: 2022-02-01' \
-u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \
-d '{
"amount": 92169,
"currency": "USD",
"merchant": "MUmfEGv5bMpSJ9k5TFRUjkmm",
"source": "PI6iQcTtJNCS8GZAVKYi5Ueb",
"3d_secure_session": "3d_secure_session_9hK2mNp4T761RBv8qwLDYc"
}'A successful request returns a 201 Created status code, with the response body containing the newly created Transfer resource. To authorize the payment now and capture it later, create an Authorization with the same 3d_secure_session field, then capture it.
3d_secure_session and 3d_secure_authentication are mutually exclusive. Use 3d_secure_session when Finix runs the authentication, and 3d_secure_authentication only when you authenticate with your own vendor.