Simulate payments to test your integration.
To test your integration, simulate transactions without moving money by using special test values in a test environment.
Test cards act like fake credit cards and allow you to simulate the following scenarios:
• Successful payments depending on the brand or country of the card
• Card errors due to declines, fraud, or invalid data
• Disputes and refunds
How to use test cards #
Interactive testing
When doing interactive testing, use a card number like 4242 4242 4242 4242. Enter the card number in the Dashboard or in any payment form.
• Use a valid future date, such as 12/34
• Use any 3-digit CVC (4 digits if using an American Express card)
• Use any value for the other fields in the form

Cards by brand #
To simulate a successful payment for a specific card brand, use the test cards from the list below.
Cards that simulate successful payments
Card Number | Type | Result | Expiry | CVC |
---|---|---|---|---|
4242 4242 4242 4242 | Visa | Successful payment | Any future | 123 |
4000 0566 5566 5556 | Visa (3D Secure) | 3DS Authentication | Any future | 123 |
5555 5555 5555 4444 | Mastercard | Successful payment | Any future | 123 |
3782 8224 6310 005 | American Express | Successful payment | Any future | 1234 |
Cards that simulate errors #
To test your integration’s error-handling logic by simulating payments that are declined for various reasons by the card issuer, use the test cards in this section. Using one of these cards will result in a card error with the corresponding error code and decline code.
Description | Card Number | Error Code | Decline Code |
---|---|---|---|
Generic decline | 4000 0000 0000 0002 | card_declined | generic_decline |
Insufficient funds | 4000 0000 0000 9995 | card_declined | insufficient_funds |
Lost card | 4000 0000 0000 9987 | card_declined | lost_card |
Stolen card | 4000 0000 0000 9979 | card_declined | stolen_card |
Expired card | 4000 0000 0000 0069 | expired_card | None |
Incorrect CVC | 4000 0000 0000 0127 | incorrect_cvc | None |
Processing error | 4000 0000 0000 0119 | processing_error | None |
Incorrect number | 4242 4242 4242 4241 | incorrect_number | None |
Based on Stripe official documentation: docs.stripe.com/testing