What Is a CVV Test Number?

A CVV test number is a dummy 3 or 4 digit security code that a payment processor publishes for sandbox testing. It is paired with a published test card number and only produces a response inside a developer or test environment. It has no connection to any real cardholder account and cannot authorize a live payment.

Do Test CVV Numbers Work on Real Payments?

No. Live gateways route real card numbers to the issuing bank, and a test card number is rejected or declined before the CVV is ever checked. Sandbox CVVs work only when the gateway is in test mode and the card number is one of the processor's published test values.

Common Sandbox Cards and Their CVV Values

  • Visa test card 4242 4242 4242 4242 with any 3 digit CVV such as 123 and any future expiry date.
  • Mastercard test card 5555 5555 5555 4444 with any 3 digit CVV.
  • American Express test card 3782 822463 10005 with a 4 digit CID such as 1234.

These values come from public processor documentation, not from any card issuer or cardholder.

Why Does a Sandbox Accept Almost Any CVV?

Most test environments skip real CVV verification because there is no bank to query. Some gateways instead map specific test values to specific outcomes, so one number may simulate an approval while another forces a CVV mismatch decline. Always check your own processor's test data page before assuming a code will behave a certain way.

How Do You Test CVV Validation in a Checkout Flow?

  1. Switch your gateway account to test mode in its dashboard.
  2. Enter a published test card number with the matching test CVV value.
  3. Force failure cases using the decline values your processor documents.
  4. Confirm your form accepts only digits and enforces a 4 digit CID for Amex.

The Luhn algorithm validates the card number, not the CVV, so do not expect a checksum to catch a bad security code.

Is It Legal to Buy or Sell Real CVVs?

No. Buying, selling, or using a real card verification value without the cardholder's authorization is fraud in every U.S. state and under federal law. Test CVVs exist only inside sandbox systems and are worthless outside them. PCI rules also bar merchants from storing the CVV after a transaction is authorized, which is why no legitimate service can supply one.

How Can You Tell a Test CVV From a Real One?

A test CVV only appears next to a publicly documented test card number, and the pair is published by a processor for developers. Real security codes are printed on the physical card and are never distributed in lists, forums, or bulk files. If a source claims to sell working CVV numbers for live cards, it is describing stolen data, not a test value.