Short answer

In Stripe test mode, enter any 3-digit number in the CVC field. Stripe does not compare it to a stored value. Test card 4242 4242 4242 4242 accepts any future expiry date, any 3-digit CVC, and any postal code. American Express test cards take a 4-digit CID.

read more

One exception exists. Card 4000 0000 0000 0127 is built to return the decline code incorrect_cvc. The charge fails and cvc_check returns fail.

stripe card cvv check

Why any CVC passes in test mode

Test mode runs on separate infrastructure. Test keys start with pk_test_ and sk_test_. A charge made with a test key never reaches a card network. Stripe holds no issuer record to compare the CVC against, so the field passes when it has the right length and digits.

stripe test card cvv validation

Test mode exists for development. Do not enter real card numbers, real CVC values, or real cardholder data in a test form. Use the published test numbers.

stripe cvv test for stripe card

CVC length by brand

  • Visa, Mastercard, Discover: 3 digits
  • American Express: 4 digits
  • Amex test card 3782 822463 10005: 4-digit CID

Test cards that exercise CVC and decline paths

  • 4242 4242 4242 4242: charge succeeds, cvc_check returns pass
  • 4000 0000 0000 0002: generic decline
  • 4000 0000 0000 0127: incorrect_cvc decline
  • 4000 0000 0000 9995: insufficient_funds decline
  • 4000 0000 0000 0069: expired_card decline
  • 4000 0000 0000 3220: 3D Secure authentication required

Reading cvc_check in the response

The Charge object and the PaymentMethod card details carry a cvc_check field. Values are pass, fail, unavailable, and unchecked. Test cards that do not target CVC return pass. Card 4000 0000 0000 0127 returns fail. Your code should branch on the decline code and on cvc_check, not on the CVC string you typed.

Setup steps

  1. Switch the dashboard to test mode and copy the test API keys.
  2. Load Stripe.js on the payment page with the publishable test key.
  3. Create a PaymentMethod with a test card number and any valid-length CVC.
  4. Confirm the PaymentIntent and read the outcome from the response.
  5. Repeat with 4000 0000 0000 0127 to confirm your incorrect_cvc path.

What changes in live mode

Live mode sends the CVC to the issuer for verification. A mismatch returns incorrect_cvc and the charge fails. Stripe does not store the CVC after authorization. PCI DSS requirement 3.2 prohibits storage of sensitive authentication data after authorization. Your server should never write the CVC field to logs, queues, or a database.

Common mistakes

  • Using live keys with test card numbers. The charge fails with a card_declined error.
  • Sending a 3-digit CVC for an Amex test card. Field validation fails before the charge starts.
  • Testing a CVC decline with 4242 4242 4242 4242. That card passes every check.
  • Assuming the CVC value controls the result. The card number controls the result in test mode.
  • Storing the CVC in a test fixture that later ships to production code.