Skip to main content
S
Payment provider

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.

Sandbox and test mode only. Never use real card numbers.
Source: Stripe docs, checked November 2026

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 numberBrand
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 numberScenarioExpected resultDecline code
4000 0000 0000 0002
Generic declinecard_declined / generic_declineStripe generic_decline
4000 0000 0000 9995
Insufficient fundscard_declined / insufficient_fundsStripe insufficient_funds
4000 0000 0000 9987
Lost cardcard_declined / lost_cardStripe lost_card
4000 0000 0000 9979
Stolen cardcard_declined / stolen_cardStripe stolen_card
4000 0000 0000 0069
Expired cardexpired_cardStripe expired_card
4000 0000 0000 0127
Incorrect CVCincorrect_cvcStripe incorrect_cvc
4000 0000 0000 0119
Processing errorprocessing_errorStripe processing_error
4242 4242 4242 4241
Incorrect number (fails Luhn)incorrect_numberStripe incorrect_number
4000 0000 0000 6975
Velocity limit exceededcard_declined / card_velocity_exceededStripe card_velocity_exceeded
4100 0000 0000 0019
Fraud: always blocked by RadarCard error with code fraud
4000 0000 0000 4954
Fraud: highest riskRadar may block, depending on your settings
4000 0000 0000 0101
CVC check failsFails if you provide a CVC
4000 0000 0000 0036
Postal code check failsFails if you provide a postal code

3D Secure and SCA cards

Card numberScenarioExpected resultDecline code
4000 0027 6000 3184
Always authenticateRequires authentication on every transaction, however the card is set up
4000 0025 0000 3155
Authenticate unless set upOff-session payments succeed once the card is set up; on-session always needs authentication
4000 0038 0000 0446
Already set upOff-session payments succeed; on-session payments need authentication
4000 0082 6000 3178
Authentication, then insufficient fundsAll payments decline with insufficient_funds, even after authentication or setupStripe insufficient_funds
4000 0000 0000 3220
3DS2 required, succeedsPayment succeeds only after authentication completes
4000 0084 0000 1629
3DS required, then declinedcard_declined after authentication
4000 0000 3220 0000
3DS frictionlessFrictionless authentication succeeds
3782 8224 6310 005
3DS not supportedProceeds 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.

  1. 1Set 4000 0000 0000 0341 (or pm_card_chargeCustomerFail) as the customer's default payment method.
  2. 2Create a subscription with a short trial so the first payment attempt is deferred.
  3. 3Let the trial end. The invoice finalizes, the charge fails, and your integration receives invoice.payment_failed.
  4. 4Check the invoice and subscription statuses and confirm your retry and customer email behavior.
  5. 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.

Payment recovery

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.

Talk to Sales

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.

Test cards for other providers

Cookie preferences

Your privacy matters

We use analytics to understand how you use our site and improve your experience. Privacy Policy