A 3D Secure test has two independent questions: did authentication complete, and what happened to the payment? A checkout that displays “paid” after the challenge closes can answer the second question incorrectly. This guide supplies an event-ordering model and a browser test plan for the gap between those events.
Separate authentication, authorization and capture
| Observation | What the application should establish next |
|---|---|
| Challenge finished or frictionless authentication completed | Retrieve or receive trusted payment state |
| Authentication lookup failed | Preserve the cart; reconcile the attempt and follow provider recovery guidance |
| Payment requires another method | Offer recovery using the provider’s supported flow |
| Amount authorized with manual capture | Wait for the server’s capture policy; do not label it captured |
| Matched server payment succeeded | Display the recorded order status and use the fulfillment workflow |
3DS is an authentication protocol; SCA is a regulatory requirement whose applicability and exceptions depend on the transaction and jurisdiction. An exemption request is not a guarantee that an issuer will accept it. Merchant-initiated transactions have their own conditions and should not be casually grouped with low-value exemptions. Consult the provider’s SCA guidance for the integration involved.
Successful authentication also does not guarantee a liability shift for every dispute. Stripe describes network- and transaction-specific limitations in its 3DS authentication documentation. Record the provider’s relevant outcome instead of deriving liability from the fact that a challenge appeared.
Select a reproducible authentication scenario
These Stripe sandbox fixtures come from the same data file as the central card reference. Confirm the environment, Radar configuration and integration flow alongside the number.
| Card number | Scenario | Sandbox expectation |
|---|---|---|
| 4000000000003220 | 3DS required | Authentication required; default Radar rules request 3DS. Complete the test challenge. |
| 4000008400001629 | Authenticate, then decline | Successful authentication followed by card_declined. Authentication is not payment success. |
| 4000000032200000 | Frictionless 3DS | Required authentication completes through a frictionless flow. |
| 4000008400001280 | 3DS lookup error | Authentication lookup fails; payment returns card_declined. |
Source: Stripe testing documentation. Selected fixtures checked 2026-11-08. These local checks do not call Stripe.
The authenticate-then-decline case is particularly useful: completing the test challenge must not create a paid order. The lookup-error case needs a recovery screen rather than an endless spinner. Use the provider’s own scenario UI; a local generated number does not select a documented 3DS outcome.
Exercise both browser and server arrival orders
The model below starts at pending. It accepts payment observations only from a server adapter that has already verified the source and matched the payment to the order. Browser return parameters carry no authority to mark it paid.
export function checkoutView(current, observation) {
// Provider observations must already be verified and matched to this order.
const allowed = ['action-required', 'pending', 'authorized', 'paid', 'payment-method-required', 'canceled'];
if (observation.source === 'browser') return current; // Redirect parameters cannot mark paid.
if (observation.source !== 'server' || !allowed.includes(observation.state)) return {...current, review: true};
if (current.review) return current;
if (current.state === 'paid') return current; // Late earlier states do not undo payment.
return {state: observation.state, review: false};
}| Case | Input / condition | Expected result |
|---|---|---|
| return-first | Browser claims success before verified server result | {"review":false,"state":"pending"} |
| event-first | Verified success, then browser return | {"review":false,"state":"paid"} |
| return-then-event | Browser return, then verified success | {"review":false,"state":"paid"} |
| late-processing | Paid, then delayed processing | {"review":false,"state":"paid"} |
| auth-not-payment | Authentication completed, payment declined | {"review":false,"state":"payment-method-required"} |
| canceled | Server confirms canceled attempt | {"review":false,"state":"canceled"} |
| challenge-timeout | Browser challenge times out; server not yet known | {"review":false,"state":"pending"} |
| off-session-action | Server requires customer authentication | {"review":false,"state":"action-required"} |
For browser first, delay server processing, return to the order page and show “Confirming payment.” Fetch authenticated order state until it changes, or offer a status refresh after a bounded wait. A network timeout must not encourage the buyer to create a second payment while the first outcome is unknown.
For server first, process the payment before allowing the browser to return. The order page should immediately show the stored paid state. A late processing observation must not overwrite it. This small view model has no delivery side effects; the Stripe guide demonstrates the separate transactional job boundary.
A browser cancellation or timeout is also not proof of a canceled payment. Reconcile with the server. The model’s sticky paid state covers a single payment attempt only: refunds, disputes and a new attempt belong in explicit additional states, not a reused cancellation flag.
Test the actual challenge UI on a phone
The offline model cannot render a bank’s challenge. Repeat these checks with your provider’s sandbox and record device, viewport, integration version and observed result:
| Interaction | Expected usability result |
|---|---|
| Open the challenge at 390px width | Prompt, controls and cancel path remain reachable without page-wide horizontal scrolling |
| Show the software keyboard | Submit control remains reachable; no hidden required field |
| Navigate with keyboard or assistive technology | Focus enters the challenge appropriately and returns to a meaningful checkout control |
| Cancel, press back or close the challenge | Cart survives; application reconciles the payment before offering a retry |
| Return over a slow connection | Clear confirming state with a bounded wait and a manual status refresh |
| Authentication succeeds but payment declines | Accurate recovery message; no receipt or fulfillment job |
Do not read or modify a cross-origin issuer frame to force an outcome. Use the provider’s supported test interface. Test your surrounding dialog’s focus and scroll handling separately from controls owned by the provider.
Run the state cases
Download the shared offline project , extract it and run with Node.js 22 or later:
node --test guide-examples.test.mjs payment-guide-examples.test.mjs
node guide-demo.mjs three-ds
The table and the tests share the same observations and expected results. These checks cover the application’s interpretation layer; they do not certify SCA compliance or prove that a live issuer will take the same path. Add the payment-form checklist for input, recovery and accessible error handling around authentication.
The Stripe authentication scenarios and references were last checked against provider documentation on . Providers do change what they publish — the official link beside each claim is authoritative.