Skip to content
Create account or Sign in
The Stripe Docs logo
Search/Ask AI
Create accountSign in
  • Get started
  • Payments
  • Revenue
  • Risk
  • Data
  • Money management
  • Stablecoins
  • Embedded finance
  • Developer resources
More
APIs & SDKsHelp
OverviewAccept a payment
Online payments
OverviewFind your use case
Use Payment Links
Build a payments page
Build an in-app integration
Use Managed Payments
Recurring payments
Process off-session payments
Migrate legacy integrations
In-person payments
OverviewHow Terminal worksAvailability
Readers
Encryption
Ready-made apps
Custom integration
Payment methods
Add payment methods
Manage payment methods
Faster checkout with Link
Payment operations
Analytics
Balances and settlement time
Compliance and security
    3D Secure authentication
      Authenticate with 3D Secure
      SCA exemptions
      Data Only
      Standalone 3D Secure
        Authenticate without cardholder present (3RI)
      Import 3D Secure results
      Writing queries
    Electronic Commerce Indicator
    SCA readiness
    India off-session payments
Currencies
Declines
Disputes
Settlement and Payouts
ReceiptsRefunds and cancellations
Advanced integrations
Elements with Payment Intents
Custom payment flows
Flexible acquiring
Multiprocessor orchestration
Beyond payments
Incorporate your company
Agentic commerce
Financial Connections
Climate
United States
English (United States)
  1. Home/
  2. Payments/
  3. Compliance and security/
  4. 3D Secure authentication

Standalone 3DS

Use the standalone 3DS API to run EMV 3D Secure (3DS) authentication and authorize the payment with any payment service provider (PSP).

Use the standalone 3DS API to run EMV 3D Secure authentication independently from payment authorization. By decoupling authentication and authorization, standalone 3DS allows you to authenticate on Stripe while processing payments with any payment service provider (PSP).

Features

  • API-level control over 3DS requests: Choose how each authentication behaves: request frictionless flows for low-risk transactions, request challenges when stronger verification is needed, or use data share only flows to exchange risk signals without cardholder friction. You can also specify a reason for 3DS, such as liability shift, processing costs, or regulatory compliance, and let Stripe select the optimal flow automatically.

  • Observability into issuer responses: Access the full 3DS protocol output, including the authentication result, Electronic Commerce Indicator (ECI), Directory Server (DS) Transaction ID, and the cryptogram. Use these signals to build your own authorization logic and analyze authentication performance across issuers and networks.

  • Support for complex payment scenarios: Authenticate recurring payments, installments, and card-on-file setups with dedicated parameters. Use 3DS Requestor Initiated (3RI) authentication for transactions where the cardholder isn’t present, such as authenticating at booking time for travel or fulfilling split shipments, by referencing a previous authentication to obtain new cryptograms for subsequent authorizations.

  • Non-payment authentication: Run 3DS authentication for account verification, card enrollment, or identity confirmation without an associated payment amount.

  • Stripe Connect compatibility: Run standalone 3DS as a platform on behalf of your connected accounts.

How it works

A standalone 3DS authentication follows these steps:

  1. Create a 3DS Authentication object with the transaction amount, currency, card details, and browser information from the cardholder’s device.
  2. Fingerprint (optional). If the issuer supports it, collect device fingerprint data through a client-side iframe or Stripe.js to improve risk assessment.
  3. Submit the authentication to the issuer. Stripe communicates with the card network’s DS and the issuer’s Access Control Server (ACS).
  4. Challenge (if required). Present the issuer’s challenge to the cardholder through an iframe or Stripe.js. Stripe sends a webhook when the challenge completes.
  5. Retrieve the authentication outcome. On success, extract the cryptogram, ECI, and DS Transaction ID.

When authenticated, submit the cryptogram as part of a payment authorization request. You can import 3DS results with Stripe or pass them to any PSP of your choice.

Supported networks and availability

Standalone 3DS supports Visa, Mastercard, American Express, Discover, and Cartes Bancaires. It’s available in all countries where Stripe supports card payments, except Malaysia and Thailand.

Note

Stripe supports the 3DS protocol up to and including version 2.3.1.

Get started

To integrate standalone 3DS, start with the guide below. If you have questions about your integration, contact your Account Executive.

Use the standalone 3D Secure API to run 3DS before authorizing a payment.

3DS authentication flow

Create a 3DS Authentication object Server-side

A 3DS Authentication object tracks the lifecycle of a 3DS authentication process.

This section provides the steps for setting the relevant parameters to create a valid 3DS Authentication object.

Note

Create the 3DS Authentication object as early as possible in the checkout flow. If you have a preview page, consider creating it there to simplify the process by performing fingerprinting and all subsequent authentication steps on your confirmation page.

Pass basic authentication parameters

Start by defining the amount, currency, and message category of the 3DS Authentication object.

Common mistake

Make sure the amount of the subsequent authorization isn’t greater than the amount used to run 3DS.

Specify a non-payment authentication by setting the message_category parameter to non_payment_authentication.

Warning

You must omit the amount parameter when you set message_category to non_payment_authentication.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications \ -u "sk_test_...:" \ -d message_category=payment_authentication \ -d amount=1000 \ -d currency=eur \ -d payment_method=pm_card_debit_threeDSecureStandaloneFrictionless \ -d "channel[type]=browser" \

Reuse an existing payment method or pass a raw card number

Either pass an existing payment method using the payment_method parameter or use the payment_method_data parameter to pass a raw card number.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications \ -u "sk_test_...:" \ -d message_category=payment_authentication \ -d "payment_method={{PAYMENT_METHOD_ID}}" \ -d amount=1000 \ -d currency=eur \ -d "channel[type]=browser" \ --data-urlencode "channel[browser][accept_header]=Accept: *.*;" \

Note

See how to create a payment method without using raw card numbers.

Specify a flow preference

When creating a 3DS Authentication, you can control how the authentication flow behaves in one of two ways:

  • Flow preference gives you fine-grained control over the specific 3DS flow, such as frictionless, challenge, or data share only.
  • Reason lets you specify why you’re invoking 3DS, and Stripe automatically determines the flow that fits your use case.

Note

The reason parameter is only available when not using flow_preference. You can either use reason to control 3DS according to your business requirements, or use flow_preference for more control over your 3DS flow preference.

Use the flow_preference parameter to specify your preference for a particular challenge indicator. If you don’t provide this optional parameter, the challenge indicator defaults to no preference.

You can request a preference for a frictionless flow by setting flow_preference[type] to frictionless.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications \ -u "sk_test_...:" \ -d message_category=payment_authentication \ -d "flow_preference[type]=frictionless" \ -d amount=1000 \ -d currency=eur \ -d payment_method=pm_card_debit_threeDSecureStandaloneFrictionless \ -d "channel[type]=browser" \ --data-urlencode "channel[browser][accept_header]=Accept: *.*;" \ -d "channel[browser][java_enabled]=false" \ -d "channel[browser][javascript_enabled]=false" \ -d "channel[browser][language]=en-US" \

Caution

You’re responsible for making sure the specific transaction actually qualifies for the Requestor Challenge Indicator you specify in the 3DS request. Stripe doesn’t enable frictionless authentication. We only communicate your request to the issuer.

You can send a request to the issuer for a frictionless flow based on low transaction risk by setting flow_preference[frictionless][type] to low_risk.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications \ -u "sk_test_...:" \ -d message_category=payment_authentication \ -d "flow_preference[type]=frictionless" \ -d "flow_preference[frictionless][type]=low_risk" \ -d amount=1000 \ -d currency=eur \ -d payment_method=pm_card_debit_threeDSecureStandaloneFrictionless \ -d "channel[type]=browser" \ --data-urlencode "channel[browser][accept_header]=Accept: *.*;" \ -d "channel[browser][java_enabled]=false" \ -d "channel[browser][javascript_enabled]=false" \ -d "channel[browser][language]=en-US" \ -d "channel[browser][timezone_offset]=0" \ --data-urlencode "channel[browser][user_agent]=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" \

Stripe can’t guarantee your preference because the issuer determines the ultimate authentication flow. After the 3DS Authentication is submitted, you can determine the effective flow by looking at ares_trans_status on the outcome_details.

Pass client-side collected channel information

The 3DS protocol requires you to submit information about the device the cardholder used to complete the transaction. You can collect this data at any time, then pass it in the channel[browser] parameter when creating a 3DS Authentication object.

The following example demonstrates how you can determine the cardholder’s browser language using JavaScript:

export const getBrowserLanguage = () => { // languages array contains the user's preferred languages and defaults to it if available const languages = navigator.languages || [navigator.language]; // Returns the first language from the array if it's a string const language = Array.isArray(languages) ? languages[0] : languages; return typeof language === 'string' ? language : null; };

Note

If the cardholder isn’t present at the time of authentication, use 3DS Requestor Initiated (3RI) authentication instead of the channel[browser] parameters.

Pass acquirer details and directory server (optional)

The 3DS Authentication API lets you submit acquirer details as an optional step. If you don’t provide these details, Stripe uses its own acquirer details for the authentication process.

Caution

If you pass acquirer details, make sure those details match the subsequent payment authorization. If they don’t, the authorization might fail.

Use the acquirer_details parameter to transmit the BIN in acquirer_bin, Merchant Identifier Number (MID) in acquirer_merchant_id and country code in acquirer_country of your acquirer. If you’re passing acquirer_details, you must include all three. If you don’t, your request fails.

If you’re authenticating on behalf of another business, you might also pass their name in merchant_name and their merchant category code (MCC) in mcc, along with the other required fields in acquirer_details. Make sure these also match the fields used during authorization.

Warning

If you pass the mcc field, you must also include the merchant_name or the creation request fails.

You must also include the Directory Server (DS) in the directory_server parameter, or your creation request fails.

Caution

Gateway information varies by card brand. Verify the brand (such as Visa or Mastercard) and provide the corresponding BIN, MID, and DS. Contact your acquirer to determine the BIN and MID, or Card Acceptor ID, assigned to you.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications \ -u "sk_test_...:" \ -d message_category=payment_authentication \ -d payment_method=pm_card_debit_threeDSecureStandaloneChallenge \ -d amount=1000 \ -d currency=eur \ -d directory_server=visa \ -d "acquirer_details[acquirer_bin]=424242" \ -d "acquirer_details[acquirer_merchant_id]=050661454304761" \ -d "acquirer_details[acquirer_country]=IE" \ -d "channel[type]=browser" \ --data-urlencode "channel[browser][accept_header]=Accept: *.*;" \ -d "channel[browser][java_enabled]=false" \ -d "channel[browser][javascript_enabled]=false" \ -d "channel[browser][language]=en-US" \ -d "channel[browser][timezone_offset]=0" \ --data-urlencode "channel[browser][user_agent]=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" \ -d "channel[browser][ip_address]=123.123.123.255" \

Specify the future usage of the authentication (optional)

When creating an authentication, you can specify the intended future usage of this authentication by populating the future_usage field.

You can specify that you’ll use the authentication for a recurring payment by setting the future_usage[type] to recurring, and passing required fields in future_usage[recurring]:

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications \ -u "sk_test_...:" \ -d message_category=payment_authentication \ -d "flow_preference[type]=challenge" \ -d amount=1000 \ -d currency=eur \ -d payment_method=pm_card_mastercard_debit_threeDSecureStandaloneChallenge \ -d "future_usage[type]=recurring" \ -d "future_usage[recurring][amount]=10000" \ -d "future_usage[recurring][interval]=day" \ -d "future_usage[recurring][interval_count]=30" \ -d "future_usage[recurring][expiry][type]=never" \ -d "channel[type]=browser" \ --data-urlencode "channel[browser][accept_header]=Accept: *.*;" \ -d "channel[browser][java_enabled]=false" \ -d "channel[browser][javascript_enabled]=false" \ -d "channel[browser][language]=en-US" \ -d "channel[browser][timezone_offset]=0" \ --data-urlencode "channel[browser][user_agent]=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" \ -d "channel[browser][ip_address]=123.123.123.255"

Caution

If you set future_usage[type] to recurring with message_category=non_payment_authentication, you must also pass the currency parameter.

Issuer fingerprinting (optional)

This step allows the issuer to gather extra browser information to help assess transaction risk.

Retrieve the fingerprinting URL Server-side

When creating an authentication (and if fingerprinting is available), a fingerprinting_url is available in the response:

Sample 3DS Authentication object
{ "id": "tdsa_1QmCRMJM0r9zBvr4OVmMRa6X", "object": "three_d_secure.authentication", // ... "fingerprinting_url": "https://hooks.stripe.com/...", }

Note

Issuer fingerprinting is optional and might not be available. If it isn’t, directly submit the 3DS Authentication object. By setting the submit parameter to if_fingerprinting_not_supported when creating a 3DS Authentication object, it’s automatically submitted if issuer fingerprinting isn’t available. Alternatively, you can skip issuer fingerprinting entirely by setting it to always.

Get the fingerprinting result Client-side

Before using Stripe.js for fingerprinting, you must set up Stripe.js according to the Stripe.js documentation.

const stripe = new Stripe('pk_test_...')

To perform fingerprinting, use the method performThreeDSecureFingerprinting and pass the fingerprinting_url. The function returns a promise that resolves with an object including the authentication id and fingerprintingResult:

stripe.performThreeDSecureFingerprinting(fingerprinting_url).then( ({id, fingerprintingResult}) => { // send the fingerprintingResult to the server } )

Pass the fingerprinting result when you submit Server-side

Include the fingerprinting result when you submit the 3DS Authentication object by passing it to the fingerprinting_result parameter.

Submit the 3DS Authentication object Server-side

When the 3DS Authentication object is in the requires_submission state, submit it:

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications/{{AUTHENTICATION_ID}}/submit \ -u "sk_test_...:" \ --data-urlencode fingerprinting_result=VGhpcyBpcyBhIHNhbXBsZSciAzRFMgTWV0aG9kIFJlc3VsdA==

This causes the 3DS Authentication object to transition into one of the following states:

  • If the status is requires_challenge, see Present the 3DS challenge to the cardholder.
  • If the status is succeeded, see Authorize the payment.
  • If the status is error, no cryptogram is available. See Handle failed states.
  • If the status is failed, the transaction wasn’t authenticated and no cryptogram is available. If the transaction relates to a country that doesn’t have any regulatory authentication requirements, you can proceed to make a regular charge without 3DS data, but you won’t gain liability shift.

Submit at creation

You can pass the submit parameter to automatically submit the 3DS Authentication object when you create it. You can specify how to handle fingerprinting using one of the following values:

  • if_fingerprinting_not_supported submits immediately only in the case that the card doesn’t support fingerprinting.
  • always submits immediately, skipping fingerprinting whether or not it’s supported.
  • never requires that you submit the 3DS Authentication object as a separate step.
Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications \ -u "sk_test_...:" \ -d message_category=payment_authentication \ -d amount=1000 \ -d currency=eur \ -d submit=if_fingerprinting_not_supported \ -d payment_method=pm_card_debit_threeDSecureStandaloneFrictionless \ -d "channel[type]=browser" \ --data-urlencode "channel[browser][accept_header]=Accept: *.*;" \ -d "channel[browser][java_enabled]=false" \

Present the 3DS challenge to the cardholder

Retrieve the challenge URL Server-side

When the 3DS Authentication object has the status requires_challenge, a challenge_url is available in the response:

Sample 3DS Authentication object
{ "id": "tdsa_1QmCRMJM0r9zBvr4OVmMRa6X", "object": "three_d_secure.authentication", // ... "challenge_url": "https://hooks.stripe.com/...", }

Render the challenge iframe Client-side

Before using Stripe.js for the challenge, you must set up Stripe.js according to the Stripe.js documentation.

const stripe = new Stripe('pk_test_...')

When you use Stripe.js, Stripe handles displaying the challenge dialog and awaiting the state transition on your behalf. To present the challenge to the user, use the Stripe.js method performThreeDSecureChallenge and pass the challenge_url. It returns a promise that resolves when the user completes or cancels the challenge. It resolves with an object including the authentication id and the authentication’s status.

stripe.performThreeDSecureChallenge(challenge_url).then( ({id, status}) => { // handle the status } )

If a cardholder dismisses the challenge dialog without authorizing or denying it, the returned status is requires_challenge. That causes the authentication to eventually time out. If the cardholder wants to retry the payment flow, you must create a new authentication.

Returned status

The status returned by the challenge is for informational purposes only. You can use it to provide visual feedback to the cardholder about the presumed outcome.

For business logic, rely directly on the status of the Authentication object.

Additional steps Server-side

After the challenge is complete, the 3DS Authentication object transitions to a finalized state and Stripe sends the corresponding webhook (three_d_secure.authentication.succeeded, three_d_secure.authentication.failed or three_d_secure.authentication.errored).

Depending on the status of the 3DS Authentication object, proceed to the corresponding section:

  • If succeeded, see Authorize the payment.
  • If error, see Handle failed states.
  • If failed and the transaction relates to a country that doesn’t have any regulatory authentication requirements, you can proceed to make a regular charge without authentication data.

State transitions

Use the diagrams below to understand the high-level state transitions for each endpoint. The tables show the webhook event that’s emitted and the resulting authentication status for each transition.

Create endpoint

The Create endpoint has two behaviors based on the submit parameter:

  • Create only: Creates the authentication and stops at requires_submission
  • Create and submit: Creates and immediately submits the authentication

Configuring submit=if_fingerprinting_not_supported follows the Create only behavior when fingerprinting is supported, or the Create and submit behavior when it isn’t.

Submit parameterEndpointWebhookEnd status
never and if_fingerprinting_not_supported when fingerprinting is supported POST /v1/three_d_secure/authentications three_d_secure.authentication.requires_submissionrequires_submission
three_d_secure.authentication.errorederror
always and if_fingerprinting_not_supported when fingerprinting isn’t supported POST /v1/three_d_secure/authentications three_d_secure.authentication.succeededsucceeded
three_d_secure.authentication.failedfailed
three_d_secure.authentication.errorederror
three_d_secure.authentication.requires_challengerequires_challenge

Submit and Cancel endpoints

After the Create endpoint, the authentication might be in a non-terminal state: requires_submission or requires_challenge. The following diagram shows how the Submit and Cancel endpoints or challenge completion can transition the authentication to a terminal state.

StatusEndpointEmitted webhookEnd status
requires_submission and requires_challengePOST /v1/three_d_secure/authentications/:id/cancelthree_d_secure.authentication.canceledcanceled
requires_submission POST /v1/three_d_secure/authentications/:id/submit three_d_secure.authentication.succeededsucceeded
three_d_secure.authentication.failedfailed
three_d_secure.authentication.errorederror
three_d_secure.authentication.requires_challengerequires_challenge

Authorize the payment Server-side

Retrieve the 3DS Authentication object. The outcome field indicates the results of the authentication process for any terminal states.

StatusOutcomeDescription
succeeded authenticatedAuthentication verification was successfully performed.
informationalThe ACS respected a preference for a frictionless flow based on low transaction risk or data share only.
attempt_acknowledgedThe authentication wasn’t performed, but the card network acknowledged the attempt and provided the necessary data to proceed to authorization.
failed rejectedThe authentication wasn’t successful because the issuer rejected the attempt and requested not to attempt authorization.
deniedThe authentication wasn’t successful because the cardholder intentionally denied the challenge.
abandonedThe authentication wasn’t successful because the cardholder abandoned the authentication.
error not_supportedThe authentication couldn’t be performed because the card used doesn’t support 3D Secure.
processing_errorThe authentication couldn’t be performed because the ACS encountered a technical issue or other problem.
internal_errorThe authentication couldn’t be performed because of technical difficulties with our system. You can retry authentication at a later time.
canceledcanceledThe authentication is canceled.

For successful authentications (status: succeeded), you can expand the outcome_details to access the final values you need to pass to your payment provider.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl -G https://api.stripe.com/v1/three_d_secure/authentications/{{AUTHENTICATION_ID}} \ -u "sk_test_...:" \ -d "expand[]=outcome_details"

The following values on the 3DS Authentication object contain the information you need to pass to your third-party gateway to make the authorization:

  • outcome_details[protocol_version]: The 3D Secure protocol version used. Stripe typically runs the most recent version of 3DS supported by the issuer. However, we might use an older version if it performs better for a specific issuer or to evaluate issuer performance. This corresponds to messageVersion on the actual ARes/RReq.
  • outcome_details[eci]: Indicates the level of authentication performed. Pass the ECI to your gateway as it’s. Be aware that some gateways might require you to map Mastercard ECIs into Visa-style ECIs. This corresponds to eci on the actual ARes/RReq.
  • outcome_details[ds_transaction_id]: The 3DS2 Directory Server Transaction ID. This corresponds to dsTransactionId on the actual ARes/RReq.
  • outcome_details[cryptogram]: A 28-character Base64 string proving that 3D Secure completed. Store this value securely, and don’t reuse it for multiple authorizations. This corresponds to authenticationValue on the actual ARes/RReq.

If you’re ultimately processing the payment on Stripe, follow the steps to import 3DS results.

Handle failed states

We recommend using outcome in combination with more detailed values parsed from the outcome_details[ares] and outcome_details[rreq] fields to analyze failures throughout the 3DS authentication. If the authentication encounters an error, the status is set to error, and you can find the cause for the error in the outcome.

  • An authentication outcome of not_supported indicates that 3DS isn’t supported for this card. You can proceed with a regular charge.
  • An authentication outcome of processing_error indicates that 3DS failed because of an unexpected error, such as bank downtime. The transaction wasn’t authenticated and no cryptogram is available. If the transaction relates to a country that doesn’t have any regulatory authentication requirements, you can proceed with a regular charge without 3DS data, but you won’t gain liability shift.
  • An authentication outcome of internal_error indicates technical difficulties with our systems.

If the authentication fails, show the customer information returned in the cardholderInfo field on the ARes/RReq to inform them why the authentication failed.

Use standalone 3DS with Connect

If you use Stripe Connect, you can run standalone 3DS on behalf of connected accounts. To act as a connected account, include a Stripe-Account header containing the connected account ID, which typically starts with the acct_ prefix. The 3DS fees are billed directly to the connected account.

When creating the 3DS Authentication with Stripe Connect, you can omit acquirer_details parameters. Stripe uses the acquirer details from the connected account.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications \ -u "sk_test_...:" \ -H "Stripe-Account: {{CONNECTED_ACCOUNT_ID}}" \ -d amount=1000 \ -d currency=eur \ -d message_category=payment_authentication \ -d payment_method=pm_card_debit_threeDSecureStandaloneFrictionless \ -d "channel[type]=browser" \ --data-urlencode "channel[browser][accept_header]=Accept: *.*;" \ -d "channel[browser][java_enabled]=false" \ -d "channel[browser][javascript_enabled]=false" \ -d "channel[browser][language]=en-US" \ -d "channel[browser][timezone_offset]=0" \ --data-urlencode "channel[browser][user_agent]=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" \ -d "channel[browser][ip_address]=123.123.123.255" \ -d "flow_preference[type]=challenge"

Note

If a 3DS Authentication object is created with Stripe Connect, the object belongs to the connected account. All requests that access the object (such as submit and retrieve) must include the Stripe-Account header.

For more information, see Making API calls for connected accounts.

Alternatively, if you’re a platform but don’t use Stripe Connect, you can explicitly pass the acquirer details of the business you’re running standalone 3DS on behalf of when creating the 3DS Authentication. In this case, the platform’s Stripe account pays the 3DS fees.

Testing

Use one of the following standalone Stripe test cards to simulate various scenarios in a sandbox. To use a test card, pass its payment method token (from the table below) as the payment_method parameter when creating a 3DS Authentication:

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node.js
Go
.NET
No results
curl https://api.stripe.com/v1/three_d_secure/authentications \ -u "sk_test_...:" \ -d message_category=payment_authentication \ -d payment_method=pm_card_debit_threeDSecureStandaloneFrictionless \ -d amount=1000 \ -d currency=eur \ -d "channel[type]=browser" \ --data-urlencode "channel[browser][accept_header]=Accept: *.*;" \

An example response using pm_card_debit_threeDSecureStandaloneFrictionless would contain additional details about the authentication outcome:

{ status: succeeded, outcome: authenticated, outcome_details: { ... eci: "05", cryptogram: "Y3J5cHRvZ3JhbV92YWx1ZQ==" ares: { ... trans_status: "Y", authenticationValue: "Y3J5cHRvZ3JhbV92YWx1ZQ==" } } }

You can pass any parameters when you use the following cards in a sandbox. You consistently get the result highlighted in the Description column.

NumberPayment Method TokenDescription
pm_card_mastercard_debit_threeDSecureStandaloneFrictionlessThe authentication goes through a frictionless flow, and succeeds. This results in a succeeded state, with trans_status: "Y" and eci: "05".
pm_card_mastercard_debit_threeDSecureStandaloneRejectedThe authentication goes through a frictionless flow and is rejected by the ACS. This results in a failed state, with trans_status: "R" and eci: "07". No cryptogram is returned.
pm_card_mastercard_debit_threeDSecureStandaloneDenyThe authentication goes through a frictionless flow and is denied by the ACS. This results in a failed state, with trans_status: "N" and no ECI. No cryptogram is returned.
pm_card_mastercard_debit_threeDSecureStandaloneProcessingErrorThe authentication goes through a frictionless flow and simulates a processing error from the ACS. This results in an error state, with an outcome of processing_error
pm_card_mastercard_debit_threeDSecureStandaloneCardNotSupportedAn error is returned on creation because the card doesn’t support 3DS. A 3DS Authentication object is still created in an error state, with an outcome of not_supported.
pm_card_mastercard_debit_threeDSecureStandaloneAttemptAckThe authentication goes through a frictionless flow and succeeds with a simulated attempt acknowledgement from the network. This results in a succeeded state, with trans_status: "A" and eci: "06".
pm_card_mastercard_debit_threeDSecureStandaloneChallengeThe authentication goes through a challenge flow, visibly displaying a 3DS challenge that requires manual intervention. On that page, you can either confirm or cancel the authentication. Confirming simulates passing the challenge. Canceling simulates failing the challenge. If you don’t take action, the challenge eventually times out. The state transitions to a finalized state based on the challenge result.
pm_card_mastercard_debit_threeDSecureStandaloneChallengeSuccessThe authentication goes through a challenge flow, without requiring any manual intervention (not displaying a 3DS challenge), and results in a successful challenge. You still need to add an iframe to the browser and set the iframe src to the challenge_url. This results in a succeeded state, with trans_status: "Y" and eci: "05".
pm_card_mastercard_debit_threeDSecureStandaloneChallengeFailureThe authentication goes through a challenge flow, without requiring any manual intervention (not displaying a 3DS challenge), and results in a failed challenge. You still need to add an iframe to the browser and set the iframe src to the challenge_url. This results in a failed state, with trans_status: "R" and eci: "07".
pm_card_mastercard_debit_threeDSecureStandaloneEmvStandardDataOnlyThe authentication goes through an EMVCo-specific data share only flow, and succeeds. This results in a succeeded state, with outcome: "informational", trans_status: "I" and eci: "06".
pm_card_mastercard_debit_threeDSecureStandaloneDSSpecificDataOnlyThe authentication goes through a directory server data share only flow, and succeeds. This results in a succeeded state, with outcome: "informational", trans_status: "U", trans_status_reason: "80" and eci: "04".

Note

To test 3DS Requestor Initiated (3RI) authentication, use card . It returns a challenge for a standard authentication but a Y for 3RI. See Testing.

You can use your live mode acquirer details. If you don’t have these details, use the following values in a sandbox:

  • Acquirer BIN: 424242 (Visa) or 545454 (Mastercard)
  • Merchant ID: MITPOTYGNFQBEVD

Request to delete 3DS cryptograms

After using the 3DS cryptogram (authenticationValue), ask Stripe to delete the stored cryptograms:

  1. Submit the request from the registered email address associated with your account.
  2. Send an email to 3d-secure-ops@stripe.com with the subject line: Request to delete 3DS standalone cryptograms <your account ID>.
  3. Attach a file containing the tokens from every 3DS Authentication object.

After Stripe completes the deletion, we send you a confirmation.

Was this page helpful?
YesNo
  • Need help? Contact Support.
  • Chat with Stripe developers on Discord.
  • Check out our changelog.
  • Questions? Contact Sales.
  • LLM? Read llms.txt.
  • Powered by Markdoc
On this page