Test Credit Card Numbers for Every Provider
The card that succeeds, the way to force a decline, and the test-mode rules for nine payment providers, side by side. Each provider has a full page with every documented test value.
Success and decline test cards by provider
| Provider | Succeeds | Declines | Test rules |
|---|---|---|---|
| Stripe | 4242 4242 4242 4242 | 4000 0000 0000 0002generic_decline | Any future expiry, any CVC, any ZIP |
| Paddle | 4242 4242 4242 4242 | 4000 0000 0000 0002declined at checkout | Sandbox account, any name, future expiry |
| Lemon Squeezy | 4242 4242 4242 4242 | 4000 0000 0000 9995declined at checkout | Store in test mode |
| Polar | 4242 4242 4242 4242 | see the Polar page | Sandbox environment |
| Dodo Payments | 4242 4242 4242 4242 | 4000 0000 0000 0002GENERIC_DECLINE | Test mode |
| Braintree | 4111 1111 1111 1111 | 4000 1111 1111 1115fails verification; or charge 2000.00-2999.99 | Sandbox gateway; the amount decides the outcome |
| Adyen | 4111 1111 4555 1142 | holder name DECLINED | Expiry 03/2030, CVC 737 |
| Razorpay | 4100 2800 0000 1007 | 4100 2800 0008 0001insufficient_fund | Any CVV, future expiry, OTP of 4-10 digits |
| Mollie | 2223 0000 1047 9399 | charge € 1,011.00 and set it to failed | Any expiry, any CVV |
Which test card numbers work where
A handful of numbers show up in several providers’ documentation. These are the providers that list each one.
4242 4242 4242 4242
Stripe, Paddle, Lemon Squeezy, Polar, Dodo Payments
4111 1111 1111 1111
Braintree, Adyen
5555 5555 5555 4444
Stripe, Dodo Payments, Braintree, Adyen, Razorpay
3782 822463 10005
Stripe, Braintree, Mollie
How test card numbers work
Test card numbers are valid by the card networks’ checksum but belong to no real account. Each provider recognises its own documented numbers in its sandbox or test mode and makes them behave in a set way: succeed, decline with a given reason, or ask for 3D Secure. They never move money, and they do nothing in live mode.
That is why a random number from a card generator is not a substitute. It may pass a format check, but a sandbox only gives predictable results for the numbers it documents, and Stripe, for example, refuses any other number in test mode.
Providers also differ in where the outcome comes from. Stripe, Paddle, Lemon Squeezy, Polar, Dodo and Razorpay use a different card for each outcome. Braintree uses the transaction amount, Adyen the card holder name, and Mollie an amount plus the status you choose on its test screen.
Make sure referred sales are credited before you launch.
While you test payments, test the referral path too: open your site with ?ref=CODE, buy with a test card, and check that the sale reaches the right affiliate. Refgrow connects to Stripe, Paddle, Lemon Squeezy, Polar and Dodo, and to any other provider through its API.
- Native Stripe, Paddle, Lemon Squeezy, Polar and Dodo integrations
- Conversions API for Braintree, Adyen, Razorpay, Mollie and others
- Dry-run test mode for Stripe checks attribution without commissions
- Payouts via PayPal and Wise