Gift Cards

A test CVV number is a fake card security code that a payment gateway accepts in sandbox mode so developers can run transactions without touching a real card. Test CVVs come from gateway documentation, not from a bank. No legitimate tool can test the CVV of a live card, because only the issuing bank knows that value and never hands it out.

What Does a CVV Do on a Real Card?

The CVV is a 3-digit code printed on the back of most Visa, Mastercard, and Discover cards. American Express prints a 4-digit code on the front. These digits sit outside the magnetic stripe and the chip, so a copied card number alone does not carry them.

Banks generate the code with an encryption key when the card is issued. The bank stores the value on its side and checks it during authorization. The merchant gets a pass or fail result and never sees the stored number.

A test CVV is a different animal. It is a value a payment gateway defines for its own test environment. It links to no account and no cardholder.

Test CVV Values for Common Payment Gateways

Gateways publish test card numbers with matching test CVVs. Most sandboxes treat any correctly formatted code as a match unless the test card is built to fail.

  • Stripe: Standard test cards pass any 3-digit CVC. Stripe also ships test numbers that force a cvc_check failure or a straight decline.
  • Braintree and PayPal: Sandbox cards accept a fixed CVC, and separate test numbers return a CVV mismatch.
  • Authorize.net: Test mode accepts any CVV format and offers card numbers that simulate a CVV decline response.
  • Adyen: Test cards map to fixed CVC outcomes, including "CVC not checked" and "CVC rejected".
  • Square: Sandbox charges run with test card numbers plus any valid-format CVV.

Values shift with API versions, so read the gateway's current docs before you build a test suite. A CVV pulled from an old tutorial may fail on a modern endpoint.

Why You Cannot Test a Real Card's CVV

Only the card issuer can verify a CVV. There is no public API, no checker site, and no lookup table that returns a live card's code. Anything that claims otherwise is either a scam or a carding tool.

Guessing creates its own evidence trail. Issuers run velocity checks, and a run of failed CVV attempts on one card triggers a block, a fraud alert, or a call to the cardholder. Visa and Mastercard rules also cap how many verification attempts a merchant may send.

Buying or selling CVV data is carding, and in the US it falls under 18 U.S.C. Section 1029, which covers fraud with access devices. That carries prison time and fines. This guide covers sandbox testing only. If someone offers to sell you CVV numbers, they are selling you a felony.

What Happens When a CVV Check Fails?

A failed CVV does not always kill the sale. Behavior depends on the processor and the merchant's settings.

  • The gateway returns a CVV mismatch code alongside the authorization result.
  • The issuer may approve the charge and still flag the mismatch, which shifts liability to the merchant.
  • Some processors decline the transaction outright and return a generic error to the buyer.
  • Repeated mismatches on one card number feed the issuer's fraud model.

Test environments let you trigger each of these outcomes on purpose, which is the whole point of a sandbox CVV.

How to Test a CVV Field in Your Own Checkout

  1. Switch your integration to sandbox mode and swap in test API keys.
  2. Use the gateway's published test card numbers instead of a personal card.
  3. Submit one transaction with a passing test CVV, then one with a card built to fail the CVV check.
  4. Confirm frontend validation: numeric only, 3 digits for most brands, 4 for American Express, no spaces or letters.
  5. Check the error message a shopper sees. It should not reveal which field failed in a way that helps someone probe your form.
  6. Log the gateway response code, never the CVV itself. Storing a CVV after authorization breaks PCI DSS.

Run the mismatch case first. It is the one developers skip, and it is the one that exposes leaks in your error handling.

Common CVV Format Rules to Validate

  • 3 digits for Visa, Mastercard, Discover, and UnionPay on most cards.
  • 4 digits for American Express.
  • Numeric characters only. No letters, dashes, or spaces.
  • The field name should not be reused across pages, and it must never hit your database.

Frequently Asked Questions

Can I test a CVV without a real card?

Yes, and that is the only valid path. Use test card numbers from your payment gateway's docs. They work in sandbox mode and move no real money.

Is there a tool that checks if a CVV is valid?

No. A CVV is valid only if the issuing bank says so, and only the bank can answer that question during an authorization request. Sites that promise a CVV check are harvesting card data.

Why do test cards often use 123 as the CVV?

Gateways picked a short, obvious value so developers recognize a sandbox transaction on sight. Some gateways accept any 3 digits for a passing test card.

Does a CVV mismatch always decline the charge?

No. Many issuers approve the charge and return a mismatch flag. The merchant then carries the fraud liability, which is why card-not-present sellers set strict CVV rules.

What is the difference between CVV, CVV2, and CVC?

They name the same idea across brands. CVV2 and CVC2 refer to the printed code used in online payments, while CVV1 sits on the magnetic stripe and comes from a card swipe.

The Short Version

Test CVV numbers exist for developers building checkout flows, and they come from gateways such as Stripe, Adyen, and Braintree. A live card's CVV cannot be tested by anyone except the issuer. Treat any service that claims to check real CVVs as a fraud operation and walk away.


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