Answer
For Stripe test cards, the verification code field takes any 3 digits in most test cases. The standard Visa test card 4242 4242 4242 4242 uses any future expiry date and any 3-digit CVC. A common test value is 123. American Express test cards use 4 digits. These values are placeholders. They do not authorize a live charge.
Stripe Card CVV Test: How CVC Checks Work in Test Mode
What the code is called
Card networks call the code a card verification value. Stripe labels the input CVC. Visa, Mastercard, and Discover cards print 3 digits on the back. American Express prints 4 digits on the front. Stripe test mode checks the field format and the test scenario. It does not check a real issuer record.
Stripe test cases
- 4242 4242 4242 4242: any 3-digit CVC. Any future expiry date.
- 4000 0000 0000 0127: returns an incorrect CVC decline.
- 4000 0000 0000 3220: requires 3D Secure 2 authentication. Use a test CVC.
Some Stripe test cards need a fixed CVC to trigger a result. Check the Stripe test card table for the card number in use. Test card data works with test API keys. It fails with live keys.
Stripe Test Card CVV Procedure Guide
Rules for test data
Use test mode for software checks. Do not enter a real card number or CVV in a test form. PCI rules bar storage of the CVC after authorization. US law treats stolen card data as illegal to buy, sell, or possess with intent to defraud. A test CVC is not a product, and a CVV market is not a legitimate payment channel.