Stripe Test Card Numbers
Stripe test cards work only with test mode API keys or a sandbox. Each decline card returns a fixed error code and decline code, so you can test every failure path without a real card.
Before you test
- Expiry: any valid future date, such as 12/34.
- CVC: any 3 digits (4 digits for American Express).
- Other form fields: any value.
- Radar CVC and postal code checks only run if you send a CVC or postal code.
Successful payments by brand
| Card number | Brand |
|---|---|
4242 4242 4242 4242 | Visa |
4000 0566 5566 5556 | Visa (debit) |
5555 5555 5555 4444 | Mastercard |
2223 0031 2200 3222 | Mastercard (2-series) |
5200 8282 8282 8210 | Mastercard (debit) |
5105 1051 0510 5100 | Mastercard (prepaid) |
3782 8224 6310 005 | American Express |
6011 1111 1111 1117 | Discover |
3056 9300 0902 0004 | Diners Club |
3622 7206 2716 67 | Diners Club (14-digit) |
3566 0020 2036 0505 | JCB |
6200 0000 0000 0005 | UnionPay |
Declined payments
These cards cannot be attached to a Customer. To test a decline on a saved card, use 4000 0000 0000 0341 (see renewals below).
| Card number | Scenario | Expected result | Decline code |
|---|---|---|---|
4000 0000 0000 0002 | Generic decline | card_declined / generic_decline | Stripe generic_decline |
4000 0000 0000 9995 | Insufficient funds | card_declined / insufficient_funds | Stripe insufficient_funds |
4000 0000 0000 9987 | Lost card | card_declined / lost_card | Stripe lost_card |
4000 0000 0000 9979 | Stolen card | card_declined / stolen_card | Stripe stolen_card |
4000 0000 0000 0069 | Expired card | expired_card | Stripe expired_card |
4000 0000 0000 0127 | Incorrect CVC | incorrect_cvc | Stripe incorrect_cvc |
4000 0000 0000 0119 | Processing error | processing_error | Stripe processing_error |
4242 4242 4242 4241 | Incorrect number (fails Luhn) | incorrect_number | Stripe incorrect_number |
4000 0000 0000 6975 | Velocity limit exceeded | card_declined / card_velocity_exceeded | Stripe card_velocity_exceeded |
4100 0000 0000 0019 | Fraud: always blocked by Radar | Card error with code fraud | |
4000 0000 0000 4954 | Fraud: highest risk | Radar may block, depending on your settings | |
4000 0000 0000 0101 | CVC check fails | Fails if you provide a CVC | |
4000 0000 0000 0036 | Postal code check fails | Fails if you provide a postal code |
3D Secure and SCA cards
| Card number | Scenario | Expected result | Decline code |
|---|---|---|---|
4000 0027 6000 3184 | Always authenticate | Requires authentication on every transaction, however the card is set up | |
4000 0025 0000 3155 | Authenticate unless set up | Off-session payments succeed once the card is set up; on-session always needs authentication | |
4000 0038 0000 0446 | Already set up | Off-session payments succeed; on-session payments need authentication | |
4000 0082 6000 3178 | Authentication, then insufficient funds | All payments decline with insufficient_funds, even after authentication or setup | Stripe insufficient_funds |
4000 0000 0000 3220 | 3DS2 required, succeeds | Payment succeeds only after authentication completes | |
4000 0084 0000 1629 | 3DS required, then declined | card_declined after authentication | |
4000 0000 3220 0000 | 3DS frictionless | Frictionless authentication succeeds | |
3782 8224 6310 005 | 3DS not supported | Proceeds without authentication |
Testing failed subscription renewals on Stripe
Stripe documents one card built for renewal failures: 4000 0000 0000 0341 attaches to a Customer successfully, but every charge against it fails. That is the shape of a real failed renewal: a card that worked at signup and declines later.
- 1Set 4000 0000 0000 0341 (or pm_card_chargeCustomerFail) as the customer's default payment method.
- 2Create a subscription with a short trial so the first payment attempt is deferred.
- 3Let the trial end. The invoice finalizes, the charge fails, and your integration receives invoice.payment_failed.
- 4Check the invoice and subscription statuses and confirm your retry and customer email behavior.
- 5For annual or quarterly renewals, use test clocks to advance simulated time instead of waiting.
To test a renewal that needs authentication, use 4000 0027 6000 3184. To test a renewal that fails even after the card was set up, use 4000 0082 6000 3178.
In production, many failed renewals are soft declines that can succeed on a later attempt if the retry is timed right. See how Slicker smart retries pick the timing, gateway and amount for each failed payment.
Your sandbox passes. What about the renewals failing in production?
Test cards prove your integration handles a decline. They do not show how much of your real failed Stripe volume is recoverable. We will look at your decline mix and tell you.
Stripe test card FAQ
What is the Stripe test card number?
The default Stripe test card is 4242 4242 4242 4242 (Visa). Use any future expiry date, such as 12/34, and any 3-digit CVC. It only works with test mode keys or in a sandbox.
Which Stripe test card triggers insufficient funds?
4000 0000 0000 9995 returns a card_declined error with the insufficient_funds decline code. 4000 0082 6000 3178 also declines with insufficient_funds, after 3D Secure authentication.
How do I test a failed subscription renewal in Stripe?
Attach 4000 0000 0000 0341 to the customer. Attaching succeeds but every charge fails. Start a subscription with a short trial, let it end, and you receive invoice.payment_failed. Use test clocks to reach annual renewals quickly.
Which Stripe test card always requires 3D Secure?
4000 0027 6000 3184 requires authentication on every transaction, including off-session subscription payments.
Why can't I attach a Stripe decline card to a customer?
Issuer decline cards such as 4000 0000 0000 9995 fail when attached. Stripe provides 4000 0000 0000 0341 for the case where the card saves successfully and the later charge declines.
Sources
Values copied from the provider's documentation and checked November 2026. Providers change test values; if a number stops working, the source page is the reference.