Stripe test card CVV procedure: the short answer

Use Stripe test cards only in test mode. For most Stripe Visa and Mastercard test numbers, enter any 3-digit CVC and any future expiry date. For Amex test numbers, use a 4-digit CVC. Use the exact card number from Stripe's current test card table. Never use a real card number, a real CVV, or purchased CVV data in a test or live account. The goal is to verify your checkout, decline handling, and webhook flow without touching sensitive card data.

related article

Buying advice: do not buy CVV data. Legitimate Stripe testing uses free, published test values. If a vendor offers real CVVs or promises to bypass authentication, stop. That is not a test-card procedure. It is card fraud risk.

stripe cvv test for stripe card

What to look for in a test-card workflow

  • Test mode keys kept separate from live keys, with a clear environment label in the dashboard and checkout.
  • A current official test card reference, not a copied list from an old blog post.
  • CVC field validation that accepts 3 digits for Visa, Mastercard, and Discover, and 4 digits for Amex.
  • Decline scenarios, authentication scenarios, and network error scenarios in the test plan.
  • Webhook checks for payment success, failure, and duplicate submission.
  • Log redaction that keeps CVV and full card numbers out of application logs, screenshots, and support tickets.
  • Test data cleanup so stale test customers and payment methods do not confuse later runs.

When you evaluate a payment testing tool, consultant, or QA template, require test-mode isolation, current official test-card references, redaction of sensitive fields, and decline coverage. Do not pay for CVV lists or card data. That is not a testing service.

stripe test card cvv verification system

Parameter bands that matter

  • Card number length: 15 digits for Amex test cards and 16 digits for most Visa, Mastercard, and Discover test cards. Use the exact published number.
  • CVC length: 3 digits for Visa, Mastercard, and Discover; 4 digits for Amex. Many Stripe success test cards accept any value in the correct length, but use the stated value when the current table gives one.
  • Expiry: any future date in test mode for many test cards. Pick a fixed future date in fixtures so tests do not break.
  • Amount: use small amounts in minor units. Add zero-decimal currency cases if you support them.
  • Coverage: at least one generic decline, one insufficient funds case, and one authentication-required case.

Step-by-step procedure

  1. Confirm you are in test mode and using test API keys.
  2. Open the current Stripe test card reference in your dashboard or documentation.
  3. Enter a published test card number, such as a standard Visa success card.
  4. Enter a CVC that matches the brand length. Use any 3-digit value for most Visa and Mastercard test cards, or a 4-digit value for Amex.
  5. Enter a future expiry date. Keep the same date in your test fixtures.
  6. Submit the payment and inspect the PaymentIntent status, error code, and customer-facing message.
  7. Repeat with decline test cards and authentication test cards.
  8. Check that webhooks arrive once, that retries are idempotent, and that logs contain no CVV.

Pitfalls to avoid

  • Using live keys with test card numbers. The payment will fail and may look like a code bug.
  • Assuming every test card accepts any CVC. Amex needs 4 digits, and some specific test cards may require exact values. Read the current table.
  • Hard-coding a CVC in logs, screenshots, or test reports. Never store CVV.
  • Testing only the success path. Add declines, authentication, duplicate submits, and timeout handling.
  • Using real customer card data in staging. This creates PCI scope and legal risk.
  • Buying or sourcing CVV lists. This is illegal and not needed for Stripe testing.

FAQ

Does Stripe require a specific CVV for test cards?

For many standard test cards, any 3-digit CVC works for Visa and Mastercard, and any 4-digit CVC works for Amex. Use the value in Stripe's current test card table when it lists one. Never use a real CVV.

stripe card cvv test tool

Can I use any expiry date with Stripe test cards?

Most Stripe test cards accept any future expiry date. Pick a fixed future date in your test data. Use a past date only when you are testing expiry validation.

What CVV should I use for a decline test?

Use the CVC format required by the card brand and the decline test card number from Stripe's table. The decline reason comes from the card number, not from a purchased CVV.

Can I test with a real card and then refund it?

No. Use test mode. Real card data in a test environment creates PCI scope and legal risk.

Is buying CVV data ever part of Stripe testing?

No. Stripe testing uses published test values. Buying CVV data is card fraud and illegal.