Gift Cards

A CVV is the 3-digit security code printed on the back of most Visa, Mastercard and Discover cards. A "test CVV" is a fake value paired with a test card number inside a payment gateway's sandbox, and it never authorizes a charge on a real account.

cvv 3 digit test instructions

The two ideas get mixed up because both involve three digits and both show up in payment testing. They do different jobs. One proves a card is in someone's hand. The other lets a developer exercise decline logic without moving money.

read more

Where does the 3-digit code sit on the card?

  • Visa, Mastercard, Discover: three digits in the signature panel on the back, printed after the last four digits of the card number.
  • American Express: four digits on the front, above the card number on the right side.
  • Track data: a second code sits in the magnetic stripe and the chip. A terminal reads that one and no customer types it.

What does the CVV check prove?

The code ties a typed card number to the plastic in the buyer's hand. A merchant sends it with the authorization request, and the issuer compares it to the value it generated for that account.

cvv 3 digit test explanation

A match returns a CVV result of M. A mismatch returns N. Issuers also send P (not processed), S (merchant says the card carries no code) and U (issuer has no CVV data on file).

Merchants see those letters in the response, not the code itself. That is why a CVV field can fail while the card number, expiry and billing address all pass.

What is a test CVV?

A test CVV is a placeholder digit string that goes with a test card number in sandbox mode, where no issuer gets contacted. Gateways publish sample cards and a fixed code for each scenario so developers can trigger an approval or a specific decline on demand.

Two behaviors show up across most gateways:

  • When the sandbox is set to approve, any three digits pass, since nothing validates them.
  • When the sandbox is set to fail, a reserved value forces the same response a real mismatch would produce, such as "incorrect CVV" or "CVV not provided".

Test values work only against test API keys. Send them to a live endpoint and the authorization stops at the first check.

Why do test CVVs have no value outside a sandbox?

Each test CVV belongs to a card number that no bank issued. There is no account behind it, no balance and no cardholder, so the issuer lookup has nothing to match against.

How does a live CVV check run?

  1. The customer types the card number, expiry and code at checkout.
  2. The gateway encrypts the code and sends it with the authorization request.
  3. The issuer recomputes the expected code from the account data and its private key.
  4. The issuer returns a result letter (M, N, P, S or U) plus the approval or decline.
  5. The merchant stores the result letter, not the code. PCI DSS forbids keeping the CVV after authorization.

How do you choose a test value for each scenario?

  1. Open the gateway's test card page and copy a number for the result you want: approval, generic decline, or incorrect CVV.
  2. Use the CVV listed next to that number. If none is listed, any three digits work.
  3. Send the request with a test key and read the response letter, not just the decline message.
  4. Repeat with a wrong code to confirm your checkout shows a clear error to the buyer.

Does a passing CVV test prove a card works?

No. A CVV match only says the code fits the account. The same response comes back on a card that is closed, over its limit or flagged for fraud, because those checks run as separate steps.

What goes wrong when testing the CVV field?

  • Typing four digits for American Express into a three-digit input, then reading the form error as a gateway bug.
  • Running sandbox card numbers against live keys, or the reverse, which returns a generic decline with no useful detail.
  • Copying test records into production and storing the CVV with them. That breaks PCI DSS even when the card was never real.
  • Assuming a decline means "bad CVV" when the issuer sent N for another reason, such as a blocked country.

Frequently asked questions

Is the CVV the same as the card PIN?

No. The PIN is four or more digits the cardholder enters at a terminal or ATM. The CVV is printed on the card and used for online and phone orders.

What do CVV2, CVC2 and CID mean?

They are the same code under different brand names. Visa calls it CVV2, Mastercard calls it CVC2, American Express calls it CID, and Discover calls it Card Identification Number.

Can a merchant keep the CVV after a purchase?

No. PCI DSS requires merchants to delete the code once authorization finishes. Storing it in any form, including a test database, fails an audit.

Why three digits and not four?

Three digits give the issuer enough combinations to check against the account while staying short enough to print in the signature panel. American Express uses four because its code sits on the front, outside that panel.


Fast digital delivery

You will receive the digital voucher immediately.

Secure Payment

All your data is transmitted with unbreakable SSL-RSA encryption.

Suitable for giving away

You can give away, resell or keep the vouchers.

24/7 customer support

We are available for you 24 hours a day.

ProtectedGiftCards.com Newsletter

Be informed as soon as new vouchers are added or when there are discounts.

Read our complete guide: Buy CVV in 2025: A Buyer's Guide to Prices, Pitfalls, and Avoiding Scams