Every payment provider publishes test card numbers for its sandbox. They pass the Luhn check, but they are not linked to any bank account: they only work in the provider's test mode and are refused everywhere else. This guide collects the numbers QA engineers and developers use most, with the scenario each one triggers.
Important: these numbers cannot pay for anything. Providers update their lists, so check the linked official docs before you rely on a number in automated tests. For random Luhn-valid numbers by brand (for form validation tests), use the card generator; the full searchable list is on the test cards page.
Stripe
Use any future expiry date and any security code (4 digits for Amex). Source: Stripe testing docs.
| Number | Result |
|---|---|
4242 4242 4242 4242 | Visa, success |
5555 5555 5555 4444 | Mastercard, success |
3782 822463 10005 | American Express, success |
4000 0000 0000 0002 | Generic decline (card_declined) |
4000 0000 0000 9995 | Decline: insufficient funds |
4000 0000 0000 0069 | Decline: expired card |
4000 0000 0000 0127 | Decline: incorrect security code |
4000 0025 0000 3155 | Requires 3-D Secure authentication (unless the card is already set up for off-session use) |
4000 0000 0000 3220 | 3-D Secure 2 authentication always required |
Adyen
Unless stated otherwise: expiry 03/2030, security code 737 (Amex: 7373). Source: Adyen test card numbers.
| Number | Result |
|---|---|
4111 1111 4555 1142 | Visa Classic (NL), success; security code optional |
4111 1111 1111 1111 | Visa Consumer, success |
3700 0000 0000 002 | American Express, security code 7373 |
4917 6100 0000 0000 | Visa, 3-D Secure 2 challenge |
5454 5454 5454 5454 | Mastercard, 3-D Secure 2 |
Adyen triggers many refusal reasons through the cardholder name rather than the card number; see its "test result codes" page.
Braintree
Any future expiry date and any security code. Source: Braintree testing reference.
| Number / amount | Result |
|---|---|
4111 1111 1111 1111 | Visa, success |
5555 5555 5555 4444 | Mastercard, success |
3782 822463 10005 | American Express, success |
6011 1111 1111 1117 | Discover, success |
| Amount 2000.00–2999.99 | Processor decline; the response code equals the amount |
How to test 3-D Secure properly
- Test both the frictionless flow (no challenge) and the challenge flow (OTP or password page).
- Test a failed or abandoned challenge: the customer closes the window or enters a wrong code.
- Check what your backend receives: ECI, authentication status and the liability shift flag. Then check the webhook. Use the Webhook Tester to capture it.
- In the EU and UK, a soft decline with code 65 or 1A means "authentication required": your integration should retry with 3-D Secure.
Checklist for a payment integration test
- Success for each brand you accept (Visa, Mastercard, Amex, local schemes).
- Hard decline and soft decline; the customer sees a clear message (see decline codes explained).
- 3-D Secure: frictionless, challenge success, challenge fail.
- Refund, partial refund, void or cancel.
- Webhooks arrive, have valid signatures (see how to verify webhook signatures) and are handled idempotently.
- Card number field: Luhn validation, spaces, paste. Use the card validator and BIN checker.
FAQ
Can I use these numbers on a real website?
No. They are refused by real issuers. They exist only for sandbox testing.
Why does a test card work in Stripe but not in Adyen?
Each provider recognises only its own test numbers in its own test environment. Some numbers, such as 4111 1111 1111 1111, are shared by convention, but the behaviour (success, decline, 3DS) is defined by each provider.
Are generated card numbers the same as test cards?
No. A generator creates random Luhn-valid numbers for testing form validation. Sandbox test cards are specific numbers that a provider maps to specific results.