Every card number in Stripe's testing docs, with decline codes and 3D Secure cards, plus PayPal and Adyen. Click a number to copy it.
Any future date, such as 12/34. Any three-digit CVC, four for American Express. Use it with your test API keys or in a sandbox; no money moves.
How to use Stripe test cards
Use these numbers with your Stripe test API keys or in a Stripe sandbox.
Enter any future expiry date and any CVC (three digits, or four for American Express). Fill the other fields with anything you like.
Stripe suggests a different card for each independent test, because state from one test can carry over to the next test on the same card. In server code, Stripe recommends its PaymentMethod IDs, such as pm_card_visa, over raw card numbers.
Each card returns a card error with the error code and decline code shown. Send a CVC when you test the incorrect CVC card, or Stripe skips the check.
Scenario
Card number
Error code
Decline code
Generic decline
card_declined
generic_decline
Insufficient funds decline
card_declined
insufficient_funds
Lost card decline
card_declined
lost_card
Stolen card decline
card_declined
stolen_card
Expired card decline
expired_card
Incorrect CVC decline
incorrect_cvc
Processing error decline
processing_error
Incorrect number decline
incorrect_number
Exceeding velocity limit decline
card_declined
card_velocity_exceeded
Decline after attaching
card_declined (on charge)
Radar and fraud checks
Radar decides what to block from your settings. Send a CVC or postal code with the cards that test those checks, or Radar skips them.
Scenario
Card number
What happens
Always blocked
Highest risk. Radar always blocks it.
Highest risk
Highest risk. Blocked or not depending on your Radar settings.
Elevated risk
Elevated risk. Radar may hold it for review.
High fraud dispute score
High fraud dispute score. Your Radar settings decide whether it is blocked.
High early fraud warning score
High early fraud warning score. Your Radar settings decide whether it is blocked.
Dynamic risk thresholds
Blocked when you turn on Dynamic risk thresholds.
Free trial abuse
Blocked when you turn on the free trial abuse control.
Adaptive 3DS
Asks for 3D Secure when you turn on Adaptive 3DS.
CVC check fails
The CVC check fails, as long as you send a CVC.
Postal code check fails
The postal code check fails, as long as you send a postal code.
CVC check fails with elevated risk
The CVC check fails and the risk level is elevated.
Postal code check fails with elevated risk
The postal code check fails and the risk level is elevated.
Line1 check fails
The address line 1 check fails. The payment still succeeds unless a custom rule blocks it.
Address checks fail
The postal code and address line 1 checks both fail.
Address unavailable
Both address checks come back unavailable. Succeeds unless a custom rule blocks it.
Disputes and early fraud warnings
Each payment succeeds and then a dispute opens. To finish the test, respond with one of the evidence values in the next section.
Scenario
Card number
What happens
Fraudulent (asynchronous)
Succeeds, then a fraudulent dispute opens shortly afterwards. Stripe suggests this one for most tests.
Fraudulent (synchronous)
Succeeds, with a fraudulent dispute opened during the payment request.
Discover fraudulent
A Discover card that succeeds, then is disputed as fraudulent.
Not received
Succeeds, then is disputed as product not received.
Inquiry
Succeeds, then the bank opens an inquiry.
Early fraud warning
Succeeds, then receives an early fraud warning.
Multiple disputes
Succeeds, then is disputed more than once.
Visa Compelling Evidence 3.0
Succeeds, then gets a dispute eligible for Visa Compelling Evidence 3.0.
Visa compliance
Succeeds, then gets a Visa compliance dispute.
Mastercard compliance
Succeeds, then gets a Mastercard compliance dispute.
Smart disputes
Succeeds, then gets a dispute eligible for Smart Disputes.
Partially refunded dispute (asynchronous)
No dispute unless you refund part of it. Then the amount you kept is disputed.
Dispute prevention
Scenario
Card number
What happens
Visa Rapid Dispute Resolution
Visa Rapid Dispute Resolution resolves it if you use Dispute Resolution. Otherwise a dispute opens.
Verifi CE3 block
Compelling Evidence 3.0 blocks it if you use Dispute Deflection. Otherwise a dispute opens.
Ethoca alert
An Ethoca alert prevents it if you use Dispute Resolution. Otherwise a dispute opens.
Asynchronous refunds
Scenario
Card number
What happens
Asynchronous success
A refund starts as pending, then succeeds and sends refund.updated.
Asynchronous failure
A refund shows as succeeded, then fails a few minutes later and sends refund.failed.
Funds straight to your available balance
Scenario
Card number
What happens
Bypass pending balance
A US charge whose funds go straight to your available balance.
Bypass pending balance
An international charge whose funds go straight to your available balance.
3D Secure: authentication and saved cards
3D Secure redirects don't happen for payments created in the Stripe Dashboard. Test them through your own checkout or the API.
Scenario
Card number
What happens
Authenticate unless set up
Asks for authentication off-session until the card is set up for future use. On-session payments always ask.
Always authenticate
Asks for authentication on every payment, however the card is set up.
Already set up
Already set up for off-session use, so those payments succeed. One-time and on-session payments ask.
Insufficient funds
Asks for authentication, then every payment declines with insufficient_funds.
3D Secure: required, optional and unsupported
Scenario
Card number
What happens
3D Secure required, ok
Must authenticate to succeed. Issued in Ireland.
3D Secure required, ok
Must authenticate to succeed. Issued in the US.
3D Secure required, declined
Must authenticate, then declines with card_declined.
3D Secure required, error
The 3D Secure lookup fails, so the payment declines with card_declined.
3D Secure supported, ok
Authentication is optional and Radar does not ask for it by default.
3D Secure supported, error
Authentication is optional, and any attempt at it fails with a processing error.
3D Secure supported, unenrolled
Supports 3D Secure but is not enrolled, so the buyer is never asked.
3D Secure not supported
3D Secure cannot run, so the payment goes ahead without it.
3D Secure frictionless, ok
Authenticates on every payment through the frictionless flow, with no challenge.
3D Secure challenge screens in mobile apps
These trigger a specific challenge screen in a mobile payment. In a browser or an API call they work as ordinary cards.
Challenge
Card number
Out of band
One time passcode
Single select
Multi select
Captcha challenge
Scenario
Card number
What happens
Captcha challenge
Succeeds once the buyer answers a captcha.
Captcha challenge
Succeeds once the buyer answers a captcha.
In-person payments with a PIN
For Stripe Terminal readers. Stripe's Terminal testing docs cover the simulated reader and physical test cards.
Scenario
Card number
What happens
Offline PIN
The cardholder enters an offline PIN.
Offline PIN retry
Contactless fails, then the reader asks for the card and an offline PIN.
Online PIN
The cardholder enters an online PIN.
Online PIN retry
Contactless fails, then the reader asks for the card and an online PIN.
Win or lose a test dispute
After a dispute card opens a dispute, respond with one of these values: in the API as uncategorized_text, or in the Dashboard's Additional information field.
Evidence value
Result
The dispute closes as won and Stripe credits the amount and fees back.
The dispute closes as lost. An inquiry closes without becoming a chargeback.
An inquiry becomes a full chargeback.
To test invalid data, no special card is needed: a month of 13, a year of 1970 or earlier, a two-digit CVC, or a number that fails the Luhn check, such as 4242 4242 4242 4241.
Call the api-m.sandbox.paypal.com endpoints with a sandbox client ID. Use any future expiry date and a three-digit CVV, or four for American Express.
Brand
Card number
American Express
American Express
Diners Club
Diners Club
Maestro
Maestro
Mastercard
Visa
Visa
Visa
Visa
Visa
Visa
Visa
Visa
CUP
CUP
JCB
JCB
PayPal decline triggers
PayPal simulates a decline from the name, not the number. Put a trigger in the First Name or Name on Card field (it's case-sensitive) and pay with a Visa test card such as 4012 8888 8888 1881.
These work on Adyen's online payments test platform only.
Most cards use the expiry 03/2030 and the security code 737 (7373 for American Express). To call the API before your front end is ready, Adyen accepts the details with a test_ prefix, such as test_5555555555554444.
A test card is most useful run through the real checkout, before a launch.
Plandalf checkouts can run on a Stripe test account beside your live one. Open a checkout's test link, pay with 4242 4242 4242 4242, and nobody is charged. Then try 4000 0000 0000 9995 to see what a buyer sees when a card is declined.
The test link uses the same checkout, with its order bumps, upsells and payment plans, so you can go through the whole purchase yourself first.
4242 4242 4242 4242 is Stripe's standard Visa test card. Use any future expiry date, such as 12/34, and any three-digit CVC. It only works with your test API keys or in a Stripe sandbox, and no money moves.
Which Stripe test card is declined for insufficient funds?
4000 0000 0000 9995. It returns the error code card_declined with the decline code insufficient_funds. For a plain decline with no specific reason, use 4000 0000 0000 0002.
Which Stripe test card triggers 3D Secure?
4000 0027 6000 3184 asks for authentication on every payment. 4000 0025 0000 3155 asks unless the card has been set up for future payments. Stripe notes that 3D Secure redirects do not happen for payments created in the Dashboard, so test through your own checkout or the API.
Can I use Stripe test cards in live mode?
No. Test cards work only with test API keys or in a sandbox. Stripe's docs also say not to use real card details for testing, since its services agreement prohibits testing in live mode with real payment details.
Do Stripe test cards work with PayPal or Adyen?
No. Each provider has its own test numbers, and Adyen's docs say its cards work only on Adyen's test platform. The PayPal and Adyen lists further down this page come from their own docs.
Built by a team obsessed with conversion.
Five people. The ones who answer chat also write the code.