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 US6RE3TRcse4wjkgDCkaLckN:c019209f-46fa-49a8-9e3f-11e5a5a2059b \
https://finix.sandbox-payments-api.com/3d_secure_sessions \
-H 'Content-Type: application/json' \
-d '{
"amount": 92169,
"currency": "USD",
"merchant_id": "MUfUoWEk3MBJ9m5cCnggfKMf",
"payment_instrument_id": "PIjkxmtZreJ3TTGE3BciARnf",
"redirect_url": "https://example.com/3d-secure/return",
"tags": {
"order_id": "ORD-123"
}
}'{
"id": "3d_secure_session_uxRFdnbPSfYKsiV1jHd3hC",
"created_at": "2026-11-28T01:25:41.457715Z",
"updated_at": "2026-11-28T01:25:41.653130Z",
"3d_secure_authentication": null,
"3d_secure_authentication_session_id": "tds_visa_15285cb26e9b",
"3d_secure_authentication_url": "https://3ds.evervault.com/?team=team_9cde05552cdc&app=app_690b5cac78d3&session=tds_visa_15285cb26e9b&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": "MUfUoWEk3MBJ9m5cCnggfKMf",
"payment_instrument_id": "PIjkxmtZreJ3TTGE3BciARnf",
"redirect_url": "https://example.com/3d-secure/return",
"state": "PENDING",
"tags": {
"order_id": "ORD-123"
},
"_links": {
"self": {
"href": "https://finix.sandbox-payments-api.com/3d_secure_sessions/3d_secure_session_uxRFdnbPSfYKsiV1jHd3hC"
}
}
}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_wUCqan1LqeEHbYSwozMcFT| 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 US6RE3TRcse4wjkgDCkaLckN:c019209f-46fa-49a8-9e3f-11e5a5a2059b \
https://finix.sandbox-payments-api.com/3d_secure_sessions/3d_secure_session_wUCqan1LqeEHbYSwozMcFT{
"id": "3d_secure_session_f3fG3Zj8K958MTP5vpXAXX",
"created_at": "2026-08-13T16:37:59.211335Z",
"updated_at": "2026-08-13T16:38:47.663201Z",
"3d_secure_authentication": {
"cardholder_authentication": "BwABBJQ1AgAAAAAgJDUCAAAAAAA=",
"electronic_commerce_indicator": "AUTHENTICATED",
"transaction_id": "EaOMucALHQqLAEGAgk"
},
"3d_secure_authentication_session_id": "tds_visa_0367b8b7ebd8",
"3d_secure_authentication_url": null,
"3d_secure_version": "2.2.0",
"amount": 1000,
"authentication_type": "CHALLENGE",
"currency": "USD",
"failure_code": null,
"failure_message": null,
"merchant_id": "MUmUNeW5N9Yw8RkLhLcGghy4",
"payment_instrument_id": null,
"redirect_url": null,
"state": "SUCCEEDED",
"tags": {
"info": "Create 3DS Session with Token"
}
}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.
- Sandbox serverhttps://finix.sandbox-payments-api.com/transfers
curl -i -X POST \
-u US6RE3TRcse4wjkgDCkaLckN:c019209f-46fa-49a8-9e3f-11e5a5a2059b \
https://finix.sandbox-payments-api.com/transfers \
-H 'Content-Type: application/json' \
-d '{
"amount": 10000,
"currency": "USD",
"merchant": "MUfUoWEk3MBJ9m5cCnggfKMf",
"source": "PIjkxmtZreJ3TTGE3BciARnf"
}'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.