3D Secure (3DS) is the card networks' protocol for asking a cardholder's bank to confirm that the person paying online really holds the card, before you authorize the payment. Your checkout sends the bank data about the purchase and the device. The bank either approves on the spot, which is the frictionless flow, or asks the customer to prove it, which is the challenge flow. When authentication succeeds, liability for fraud chargebacks typically moves from you to the issuer, which is most of the reason merchants put up with it.
"3D Secure authentication" and "3DS2" mean the same thing today. The current protocol is EMV 3-D Secure, published in October 2016 and written to replace the original 3DS 1.0.2 (Visa). Stripe supports versions up to 2.3.1 (Stripe).
The brand names
Each network runs 3D Secure under its own name, and your customers see that name in the challenge window, not "3DS". Stripe's guide lists the three you'll meet most (Stripe):
| Network | Programme name |
|---|---|
| Visa | Visa Secure, "Visa's global EMV 3-D Secure program" (Visa) |
| Mastercard | Mastercard Identity Check |
| American Express | American Express SafeKey |
Same protocol underneath. You integrate once through your processor or a 3DS server, and the card's network decides which programme runs.
Frictionless vs challenge
| Frictionless | Challenge | |
|---|---|---|
| What happens | The issuer assesses the data you sent and authenticates without asking the customer anything | The issuer wants more proof and shows the customer a prompt |
| What the customer sees | A brief loading state, then success | A one-time passcode, an approval in their banking app, or a single- or multi-select question |
| Who picks | The issuer | The issuer |
| How you find out on Stripe | authentication_flow is frictionless | authentication_flow is challenge |
The challenge types come from Stripe's test cards, which trigger each of the four screens: one-time passcode, out of band (the banking app), single select and multi select (Stripe). The authentication_flow field sits on the charge under payment_method_details.card.three_d_secure (Stripe).
The point to absorb: you request, the issuer decides. You can state a preference for one flow or the other, and Stripe says plainly it "can't guarantee your preference because the issuer determines the ultimate authentication flow". What you control is how much data you send. More context gives the issuer more reasons to wave the payment through.
3DS1 is retired
Visa ended support for 3DS 1.0.2 and all related technology on 15 October 2022 (Visa Business News, 4 February 2021), and Checkout.com reports Mastercard retiring it on the same date (Checkout.com). Stripe's docs now open with "Major card brands no longer support 3D Secure 1" (Stripe). If a plugin, an old integration guide or a gateway setting still talks about the static-password pop-up, it's describing a protocol the networks switched off. On Stripe, the fix is moving to PaymentIntents or SetupIntents, which run 3DS2.
When 3D Secure runs
On Stripe it triggers automatically when a regulation mandates it (Strong Customer Authentication in Europe, the Credit Card Security Guidelines in Japan), when an issuer soft-declines and asks for it, or when your Radar rules or your API call request it (Stripe). Outside those cases it's your call. In the US nothing requires it, so 3DS is a tool you reach for on the payments you're nervous about.
It can't run everywhere. Stripe lists wallets and off-session payments, such as subscription renewals, among the transactions that don't support it, and you can't use Stripe's API to switch it off when it is required. Which European payments can skip it legally is a separate topic: SCA exemptions and 3DS2.
What 3D Secure costs
Two bills: a fee and some friction.
| Stripe pricing, checked 11 November 2026 | 3DS fee |
|---|---|
| Standard payments pricing | Included at no additional charge |
| Custom pricing | $0.03 per 3D Secure attempt |
| Standalone 3DS (authenticate on Stripe, authorize with another provider) | $0.12 per attempt |
Source: stripe.com/pricing. On a custom plan, 10,000 attempts a month is 10,000 x $0.03 = $300. Stripe prices it per attempt, not per successful authentication. Other processors price it their own way; ask yours.
The friction is the bigger bill, and it's yours to measure rather than ours to guess. Stripe's own Radar docs warn that "indiscriminate use of 3DS might lower conversion rates" (Stripe). Stripe records why failed authentications failed in three_d_secure.result_reason: abandoned (the customer timed out), canceled and rejected (Stripe). Count those against your challenges and you have your own abandonment rate, which beats any industry average for deciding where to draw the line.
Asking for 3D Secure on Stripe
Stripe's default is automatic: its SCA engine decides, based on regulation and risk. The API reference "strongly" recommends leaving it there unless you run your own fraud engine (Stripe). When you do want to force it, payment_method_options.card.request_three_d_secure takes three values:
| Value | What it does |
|---|---|
automatic | Default. Stripe requests 3DS when regulation or risk calls for it |
any | Always attempt 3DS when the card supports it, preferring a frictionless flow |
challenge | Always attempt 3DS, preferring a challenge |
import stripe
def create_card_payment(amount_cents: int, currency: str, customer_id: str,
risk: str) -> stripe.PaymentIntent:
# Your fraud engine decides. "high" asks for a challenge, "elevated"
# asks for 3DS but lets the issuer skip the prompt, anything else
# leaves it to Stripe.
preference = {"high": "challenge", "elevated": "any"}.get(risk, "automatic")
try:
return stripe.PaymentIntent.create(
amount=amount_cents,
currency=currency,
customer=customer_id,
payment_method_types=["card"],
payment_method_options={"card": {"request_three_d_secure": preference}},
metadata={"risk": risk},
)
except stripe.StripeError as exc:
raise RuntimeError(f"could not create payment for {customer_id}") from exc
Your frontend then confirms the intent as usual. If the issuer wants a challenge, the PaymentIntent moves to requires_action and Stripe.js shows the bank's window; if authentication fails it lands in requires_payment_method (Stripe). PaymentIntents explained covers that loop, and payment lifecycle states covers why requires_action can't be an afterthought.
If you'd rather not touch code, Radar does the same from the Dashboard. Stripe's own example rule is Request 3D Secure if :risk_level: != 'normal' and :amount_in_usd: > 25, and custom 3DS rules need Radar's paid tier (Stripe). Stripe Radar rules has more of them.
What to store
After the charge, keep the three_d_secure block from the charge: result, authentication_flow, electronic_commerce_indicator, version and transaction_id. Those are what you'll point at if a fraud dispute arrives anyway, and what tells you, months later, whether your challenge rate crept up. What that record does and doesn't protect you from is the subject of the 3DS2 liability shift.
The same decision without a processor doing it for you: a 3DS handler that weighs the risk score before triggering anything, and keeps the CAVV and ECI for later. From chapter 19.
3D Secure 2.0 Implementation
The full implementation is available in src/examples/19-fraud/three_d_secure_handler.py. Here's how to use it:
from three_d_secure_handler import ThreeDSecure2Handler, BrowserInfo
# Initialize the 3DS handler
threeds_handler = ThreeDSecure2Handler(
mpi_provider_config={
'base_url': 'https://api.3dsecure-provider.com',
'api_key': 'your_api_key',
'merchant_id': 'your_merchant_id',
'merchant_url': 'https://your-site.com'
}
)
# Initiate authentication based on risk score
result = threeds_handler.initiate_authentication(
context=transaction_context,
risk_score=fraud_score
)
if result.challenge_required:
# Redirect customer to authentication URL
redirect_url = result.authentication_url
else:
# Frictionless flow - proceed with payment
# Use result.cavv and result.eci for liability shift
process_payment(result.cavv, result.eci)
3D Secure 2.0: smart authentication, not blanket friction
The original 3D Secure was hated because it challenged everyone and gutted conversion. 3DS 2.0 is risk-based - it only challenges when there's a reason. The _should_require_3ds method weighs the transaction risk score, customer history, regulatory requirements (EU SCA mandates challenges in specific cases), and merchant preferences before triggering anything.
The flow has two phases. First, the system contacts the issuer's Access Control Server (ACS) to decide whether authentication is needed. If so, you redirect the customer to their bank's authentication page: biometrics, an SMS code, or an app push notification, depending on what the issuer supports.
This works because 3DS 2.0 is contextually aware. Most legitimate transactions slide through frictionless. Only risky ones require interaction, and modern methods like Touch ID and push notifications beat the old janky password forms. Authenticated transactions shift chargeback liability to the issuer, which is the real reason merchants opt in.
The process_challenge_response method pulls out three artifacts you need to keep: CAVV (cryptographic proof authentication occurred), ECI (the level of authentication that happened), and XID (the transaction identifier linking authentication to payment). You'll need these if a chargeback shows up later and you want to claim the liability shift.
3DS integrates with your risk scoring directly - high fraud scores trigger authentication automatically, so ML and customer authentication reinforce each other. Done right, 3DS 2.0 keeps conversion up because most customers see no challenge, shifts fraud liability to issuers, and ticks the SCA compliance box in regulated markets.
Questions
What is 3D Secure?
3D Secure (3DS) is the card networks' protocol for asking the cardholder's bank to confirm that the person paying online really holds the card, before the payment is authorized. The bank either approves without asking the customer anything (the frictionless flow) or asks them to prove it (the challenge flow).
What is the difference between frictionless and challenge 3D Secure?
In the frictionless flow the issuer authenticates using the data the merchant sent, and the customer sees only a brief loading state. In the challenge flow the issuer asks for more proof, such as a one-time passcode or an approval in the banking app. The issuer picks the flow; the merchant can only state a preference.
What are Visa Secure, Mastercard Identity Check and American Express SafeKey?
They are the card networks' brand names for 3D Secure. The protocol underneath is the same EMV 3-D Secure, and the card's network decides which programme runs.
Is 3D Secure 1 still supported?
No. Visa ended support for 3DS 1.0.2 on 15 October 2022, Mastercard retired it on the same date, and Stripe's docs say major card brands no longer support it. Current integrations use EMV 3-D Secure, also called 3DS2.
How much does 3D Secure cost on Stripe?
On Stripe's standard pricing it is included at no additional charge. Accounts on custom pricing pay $0.03 per 3D Secure attempt, and standalone 3DS, where you authorize with another provider, is $0.12 per attempt.