Standalone 3DS authentication
Authenticate cardholders independently of a payment to reduce fraud and shift liability before you process a charge.
Standalone 3DS authentication lets you verify a cardholder's identity before creating a charge. Unlike charge-linked 3DS, authentication is fully separate from payment. You run the 3DS session first, collect the Electronic Commerce Indicator (ECI) and cryptogram (CAVV), and then pass those values to the charge endpoint.
When to use standalone 3DS
Use standalone authentication when you need to separate authentication from authorization:
- Subscription setup: Authenticate a card once during enrollment, then charge it repeatedly without re-running 3DS for each transaction.
- Deferred charges: Verify a cardholder now and charge them later, for example for a pre-order or a quote-to-invoice workflow.
- Liability shift before retry: Authenticate before re-attempting a declined authorization to shift fraud liability to the issuer.
- Split processing: Authenticate with Pay.com and authorize through a separate processor by passing the ECI and CAVV you receive.
Choose your flow
Standalone 3DS supports two integration patterns:
| Flow | How it works | Best for |
|---|---|---|
| Two-step (default) | The first API call creates the session. A second call sends the session to the issuer to start authentication. Between the two calls, you can optionally run device fingerprinting in the browser. | When you need fingerprinting or want full control over timing |
| One-step | A single API call creates the session and starts issuer authentication immediately. No second call needed. | Simpler integrations where you expect a frictionless outcome |
The submit parameter in the request controls which flow Pay.com uses:
submit value | Behavior |
|---|---|
"never" | Two-step (default). Creates the session. You call the Submit endpoint separately. |
"always" | One-step. Pay.com submits the session immediately, skipping fingerprinting. |
"if_fingerprinting_not_supported" | One-step when possible. Pay.com submits automatically when the issuer doesn't support fingerprinting, and falls back to two-step when it does. |
Requirements
Before you start:
- Configure your environment and retrieve your API credentials.
- Collect the cardholder's browser details in your frontend (user agent, screen dimensions, timezone offset, and color depth).
- Make sure your
return_urlis reachable from the cardholder's browser. Pay.com redirects there after a challenge completes. - Ask Pay.com to set up a 3DS processor for standalone authentication on your
account. Until it's set up, creating a session returns
400withStandalone 3DS has no processor configured.
Two-step flow
Follow these steps for the two-step flow. For the one-step pattern, see One-step flow.
- 1
Create an authentication session
Send a
POSTrequest to/v1/authentication/session/independentwith the card data, browser details, and flow options. Theamountvalue is in the smallest currency unit (for example,10000is $100.00 USD).{ "payment": true, "amount": 10000, "currency": "usd", "payment_method_data": { "type": "card", "card": { "number": "4200350000000801", "expiry_year": "2027", "expiry_month": "11", "cvv": "123", "name": "Jane Smith" } }, "authentication_options": { "type": "three_ds", "return_url": "https://example.com/3ds-complete", "three_ds": { "channel": { "type": "browser", "browser": { "customer_ip_address": "203.0.113.45", "browser_details": { "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "javascript_enabled": true, "language": "en-US", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36", "screen_width": 1920, "screen_height": 1080, "timezone_offset": "-300", "java_enabled": false, "color_depth": 24 } } }, "flow_indicator": { "type": "frictionless" }, "submit": "never" } } }{ "id": "sca_702198783584240640", "resource": "independent_authentication_session", "status": "requires_submission", "fingerprint_url": "https://sca.pay.com/fingerprint?client_secret=...", "result": null, "url": null, "authentication_details": {}, "amount": 10000, "currency": "usd", "type": "payment", "return_url": "https://example.com/3ds-complete", "created": "2026-04-22T16:47:18.466Z" }Save the session
id(thesca_...value). You need it for the Submit the session and Retrieve the authentication result steps. If the response includes afingerprint_url, move to the next step. If it isnull, skip directly to Submit the session.flow_indicator.typetells the issuer your preferred outcome. Set it to"frictionless"to avoid a challenge, or"challenge"to require one. The issuer makes the final decision and may still return a challenge even when"frictionless"is set. - 2
Collect device fingerprint (optional)
If the session creation response includes a
fingerprint_url, the issuer supports device fingerprinting. Load the URL in a hidden iframe on your page before calling Submit the session. The iframe collects browser and device signals that the issuer uses to assess risk and improve frictionless rates.<iframe src="FINGERPRINT_URL" width="0" height="0" style="display:none" ></iframe>Listen for the completion signal before calling Submit the session:
window.addEventListener('message', (event) => { if (event.data?.type === 'three_ds_method_complete') { submitSession(); } });Fingerprinting is optional. You can send the Submit request without waiting for the iframe to complete. The issuer still processes the session with less device data.
- 3
Submit the session
Send a
POSTrequest to/v1/authentication/{id}/submit. No request body is needed.POST /v1/authentication/sca_702198783584240640/submit{ "id": "sca_702198783584240640", "status": "succeeded", "result": "authenticated", "authentication_details": { "three_ds": { "eci": "05", "cavv": "AJl/s+JE6SlVFGK2oT6/rDYnBXY=", "authentication_flow": "frictionless", "protocol_version": "2.2.0", "status_reason": null } }, "url": null }{ "id": "sca_702199298703492096", "status": "requires_authentication", "result": null, "url": "https://sca.pay.com/authenticate?client_secret=...", "authentication_details": {} }Route based on the
statusfield in the response:Status Meaning Next action succeededFrictionless authentication passed Retrieve the result to confirm and collect ECI and CAVV failedFrictionless authentication denied Don't proceed with the charge. Check authentication_details.three_ds.status_reasonrequires_authenticationIssuer needs a challenge Move to the next step errorProcessing error Check authentication_detailsfor the reason - 4
Handle a challenge
If Submit returns
status: "requires_authentication", render the challengeurlin an iframe on your page. The iframe displays the issuer's verification UI, for example an OTP screen or a biometric prompt. Size the iframe to at least 600 × 400 pixels.<iframe src="CHALLENGE_URL" width="600" height="400" ></iframe>When the cardholder completes the challenge, the issuer redirects the iframe to your
return_url. Detect that redirect, then call Retrieve. - 5
Retrieve the authentication result
Send a
GETrequest to/v1/authentication/{id}to read the final outcome. Call this endpoint after Submit returnssucceededorfailed(to confirm), or after the cardholder completes the challenge and is redirected to yourreturn_url.GET /v1/authentication/sca_702198783584240640{ "id": "sca_702198783584240640", "status": "succeeded", "result": "authenticated", "authentication_details": { "three_ds": { "eci": "05", "cavv": "AJl/s+JE6SlVFGK2oT6/rDYnBXY=", "authentication_flow": "frictionless", "ds_transaction_id": "6ee32fb8-b8d7-4ba8-9f85-ab8d4d59fa39", "protocol_version": "2.2.0", "status_reason": null } } }{ "id": "sca_702198966019686400", "status": "failed", "result": "denied", "authentication_details": { "three_ds": { "eci": "07", "cavv": null, "authentication_flow": "frictionless", "status_reason": "01" } } }Use
resultto decide what to do next:-
authenticated(orattempt_acknowledged): Pass the values fromauthentication_details.three_dsto your charge assource_data.card.three_ds(orsource_data.source.three_dsorsource_data.token.three_ds) to get liability shift:Charge three_dsfieldFrom the session eciauthentication_details.three_ds.ecicavvauthentication_details.three_ds.cavvversionauthentication_details.three_ds.protocol_versionds_trans_id(required for 3DS 2.x)authentication_details.three_ds.ds_transaction_idSee External MPI for a full charge example.
-
attempt_acknowledged: The issuer acknowledged the attempt (ECI 06 for Visa, 01 for Mastercard). You can usually proceed with liability shift. -
denied: The cardholder failed authentication. Don't proceed with the charge. -
rejected: The issuer rejected authentication. Don't proceed with the charge. -
not_supported: The card or issuer doesn't support 3DS. Proceed according to your risk policy. -
abandoned: The cardholder closed the challenge without completing it. -
processing_error: A system error occurred. Retry or contact support.
To receive status updates asynchronously instead of polling, subscribe to authentication session webhook events. See the webhook events reference for the full list of events.
-
One-step flow
Set submit to "always" in the POST /v1/authentication/session/independent
request. Pay.com creates and immediately submits the session in a single call,
skipping device fingerprinting. The issuer still decides the outcome. It may
return a frictionless result or require a challenge, as in the two-step flow.
{
"payment": true,
"amount": 10000,
"currency": "usd",
"payment_method_data": {
"type": "card",
"card": {
"number": "4200350000000801",
"expiry_year": "2027",
"expiry_month": "11",
"cvv": "123",
"name": "Jane Smith"
}
},
"authentication_options": {
"type": "three_ds",
"return_url": "https://example.com/3ds-complete",
"three_ds": {
"channel": {
"type": "browser",
"browser": {
"customer_ip_address": "203.0.113.45",
"browser_details": {
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"javascript_enabled": true,
"language": "en-US",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
"screen_width": 1920,
"screen_height": 1080,
"timezone_offset": "-300",
"java_enabled": false,
"color_depth": 24
}
}
},
"flow_indicator": {
"type": "frictionless"
},
"submit": "always"
}
}
}{
"id": "sca_702199073985266688",
"status": "succeeded",
"result": "authenticated",
"authentication_details": {
"three_ds": {
"eci": "05",
"cavv": "AJnRxE8vBtNV9JFTIqTA8BW1fLI=",
"authentication_flow": "frictionless",
"protocol_version": "2.2.0"
}
},
"fingerprint_url": null
}{
"id": "sca_702199298703492096",
"status": "requires_authentication",
"result": null,
"url": "https://sca.pay.com/authenticate?client_secret=...",
"authentication_details": {},
"fingerprint_url": null
}Route based on the status field in the response:
| Status | Meaning | Next action |
|---|---|---|
succeeded | Frictionless authentication passed | Retrieve the result to confirm and collect ECI and CAVV |
failed | Frictionless authentication denied | Don't proceed with the charge |
requires_authentication | Issuer requires a challenge | Follow the steps in Handle a challenge. Call Retrieve the authentication result after the cardholder is redirected to your return_url |
error | Processing error | Check authentication_details for the reason |
You can also use submit: "if_fingerprinting_not_supported" to auto-submit
only when the issuer doesn't offer device fingerprinting (that is, when
fingerprint_url is null in the response). When fingerprinting is
available, the session falls back to the two-step flow. The response returns
status: "requires_submission", and you must call
POST /v1/authentication/{id}/submit
to continue.
Test your integration
Use these values in the sandbox to test each outcome.
Test card:
| Field | Value |
|---|---|
| Card number | 4200350000000801 |
| Expiration date | 11/2027 |
| CVV | 123 |
Challenge OTP codes (entered by the cardholder in the challenge iframe, not sent through the API):
| Code | Outcome |
|---|---|
1234 | Success (result: "authenticated") |
3333 | Failure (result: "denied") |
To trigger a frictionless failure without a challenge, add "name": "fake"
to payment_method_data.card in the session creation request.
Next steps
Related 3D Secure guides:
- 3D Secure: How Pay.com's agnostic 3DS layer works, and when to use standalone or charge-linked authentication.
- Create a charge with 3DS: Run 3DS as part of the charge creation flow.
- Merchant-initiated authentication:
Set
future_usagefor later payments, and run 3RI. - Risk assessments: Score a payment before charging it, and combine risk signals with 3DS authentication.