How to use these cards
Switch your Stripe integration to test mode with your test API keys, then type any number above into Checkout, the Payment Element or the Dashboard. Stripe's instructions are short: a valid future expiry date, any three-digit CVC (four for American Express), any value in the other fields. The number decides what happens.
Use them with your test API keys. The Stripe Services Agreement prohibits testing in live mode with real card details, so testing in live mode means a few small real charges that you refund afterwards. More on that below.
Card numbers in code
In automated tests, use a test PaymentMethod ID such as pm_card_visa, not the raw number. Stripe's own guidance is not to put card numbers in API calls or server-side code, even in testing, because code that sends raw numbers might not be PCI compliant when it goes live. The numbers on this page are for typing into a form.
One trap: you can't attach a card that simulates an issuer decline to a Customer. To test a saved card that fails later, attach 4000 0000 0000 0341, which attaches cleanly and declines when you charge it. That's the card for testing renewals and dunning.
What to test before launch
At minimum, run one card from each of these through your real checkout and watch what your code does:
- A success (
4242 4242 4242 4242) all the way to fulfilment, including the webhook. - A generic decline and insufficient funds. The customer should see a message they can act on, and your order should not be marked paid.
- 3D Secure required. The payment pauses for authentication and your code has to resume it. If you sell in Europe, this is the path most customers take; SCA exemptions and 3DS2 explains when it's skipped.
- A dispute. Check that the
charge.dispute.createdevent reaches you and that someone finds out. - The same webhook twice. Not a card, but test it anyway; duplicate Stripe webhooks shows why.
What test mode won't tell you
Radar scores test cards differently from real ones, real issuers run their own 3D Secure challenge screens, payout timing is simulated, and test-mode webhooks stop retrying much sooner than live ones. Before launch, run a few small live charges on your own card, follow them through the webhook into your database, then refund them. The free Stripe chapter covers the CLI loop for replaying events locally.
Source
Every number on this page is copied from Stripe's testing documentation, checked 10 November 2026. This is a selection: Stripe also lists HSA and FSA cards, more Radar and dispute-prevention cards, mobile 3DS challenge flows, captcha and in-person PIN cards, and bank account numbers for ACH, Bacs and BECS. If a number here stops behaving as described, Stripe's page wins.
Questions
What is the Stripe test card number?
4242 4242 4242 4242 is the standard Visa test card. It succeeds with any future expiry date and any three-digit CVC, with your test API keys.
Which Stripe test card declines a payment?
4000 0000 0000 0002 returns a generic decline. 4000 0000 0000 9995 declines for insufficient funds, 4000 0000 0000 0069 as an expired card, and 4000 0000 0000 0127 for an incorrect CVC.
Which Stripe test card requires 3D Secure?
4000 0025 0000 3155 requires authentication unless the card was set up for off-session use. 4000 0027 6000 3184 requires it on every transaction.
Can I use Stripe test cards in live mode?
No. Use them with your test API keys. The Stripe Services Agreement prohibits testing in live mode with real card details, so a live test means a few small real charges that you refund afterwards.