By: Charity Amancio | First published on: | Updated on:
A CVV code, short for card verification value, is the three or four digit security number printed on a credit or debit card apart from the card number. Visa, Mastercard, and Discover print a three digit code on the back of the card, and American Express prints a four digit code on the front.
Online merchants ask for the CVV code at checkout, and the card issuer confirms whether it matches, which shows the shopper likely holds the physical card. The check is cheap and blocks fraudsters who only have a stolen card number, yet it cannot stop phishing, skimming, or friendly fraud, so it works best as one signal in a wider fraud strategy.
What Is a CVV Number?
A CVV number is a short code that card issuers add to a payment card so they can confirm the person making a card-not-present purchase has the card in hand. People who search what is CVV or what does CVV mean are asking about the same thing. CVV stands for card verification value, and the printed code is never part of the long card number on the front.
The code is printed flat on the card, apart from the card number, and PCI rules bar merchants from keeping it after authorization. As a result, a criminal who steals card numbers from a breached merchant database usually does not have the matching code.
CVV vs. CVV2, CVC Code, and CID
Each card network uses its own name for the printed code. Visa calls it CVV2, Mastercard calls it a CVC code (CVC2), and Discover and American Express use CID, which stands for card identification number. Merchants and checkout pages often use the generic label card security code. The names differ, yet every version does the same job during an online or phone payment.
Where to Find the CVV Code by Card Brand
The location of the CVV code depends on the card network. The table below shows what each brand calls the code, how many digits it has, and where it is printed.
| Card brand | What the network calls it | Digits | Where it is printed |
|---|---|---|---|
| Visa | CVV2 (card verification value 2) | 3 | Back of the card, near the signature panel or after the account number |
| Mastercard | CVC2 (card validation code 2) | 3 | Back of the card, near the signature panel or after the account number |
| Discover | CID (card identification number) | 3 | Back of the card, near the signature panel or after the account number |
| American Express | CID (card identification number) | 4 | Front of the card |
Debit cards follow the same rules as credit cards from the same network. The CVV on a debit card is the three digit code on the back of a Visa, Mastercard, or Discover debit card, so a shopper paying online with a debit card enters it exactly as they would for a credit card.
Virtual Cards Have Their Own CVV
Shoppers often ask whether virtual credit cards have a CVV, and they do. Issuers that offer virtual card numbers generate a separate card number, security code, and expiration date for each virtual card, and some can be locked to one merchant or set to expire after a single use. Merchants should treat the code on a virtual card the same way as the code on a plastic card.
How a CVV Check Works During Checkout
A CVV check runs inside the normal authorization request, so it adds no extra step for the shopper beyond typing three or four digits. The merchant never verifies the code itself. The flow below shows what happens behind the payment button.
- The shopper enters the card number, expiration date, and CVV code at checkout.
- The payment gateway sends the code with the authorization request to the acquirer and the card network.
- The card network routes the request to the issuing bank, which compares the code with its own record.
- The issuer returns an approval or decline plus a CVV result code.
- The merchant applies its own rules to that result before it ships the order.
The whole exchange takes a few seconds. What matters for fraud prevention is the rule the merchant attaches to each result code, which the next section covers.
CVV Response Codes Merchants Should Know
Processors return a one letter CVV result with each authorization. The codes below are the common set, though exact labels vary by processor and gateway.
| Result code | Meaning | Suggested merchant action |
|---|---|---|
| M | Match (Visa, Mastercard, Discover) | Continue with your other fraud checks |
| Y | Match (American Express) | Continue with your other fraud checks |
| N | No match | Decline the order or ask for the code again with a strict retry limit |
| P | Not processed | Review the order against other signals before fulfillment |
| S | The code should be on the card, but the merchant indicated it is not present | Ask the shopper to re-enter the code or decline |
| U | Issuer unable to process or not certified for CVV checks | Rely on AVS, 3D Secure, and order review instead |
A mismatch can also come back as a decline instead of a result letter. Visa issuers use response code N7, which means decline for CVV2 failure, so check how your gateway surfaces both signals before you write rules.
Why Merchants Cannot Store the CVV Code
The PCI Security Standards Council guidance says card verification codes cannot be kept once the transaction they were collected for is authorized, even if they are encrypted. The ban covers card-on-file and recurring billing, and a customer’s consent does not change it. Merchants that need repeat charges should ask their acquirer how to process card-on-file payments without the code.
What a CVV Check Stops and What It Misses
A CVV check is strong against one specific threat and weak against several others. Knowing both sides helps merchants decide how much weight to give the result.
Where CVV Verification Works
The check blocks orders placed with card numbers stolen from databases that never held the security code. That protection matters because card fraud remains expensive. Nilson Report card fraud data released in January 2026 put worldwide card fraud losses at $33.41 billion for 2024, and US cards accounted for 41.87% of those losses while generating 26.31% of global card volume.
Where It Falls Short
Criminals who capture the full card, code included, pass the check easily. Phishing scams trick shoppers into typing the code into a fake page, and online web skimming attacks copy it straight from a real checkout form. Friendly fraud also slips through, because the real cardholder places the order and disputes it later.
Card testing is the other gap. A three digit code has only 1,000 possible values, and a 2016 Newcastle University study showed attackers could guess card details by spreading attempts across many sites. That research is now a decade old, yet the tactic has scaled up. Visa said in May 2024 that enumeration attacks cost about $1.1 billion a year in fraud losses when it launched its Visa Account Attack Intelligence Score. A passed CVV check also does not shift fraud liability away from the merchant.
How to Use a CVV Check in Your Fraud Strategy
The CVV check costs almost nothing to run, so the goal is to get the most out of it. These five practices turn the result into a useful fraud signal.
Require the CVV Code on Every Card-Not-Present Order
Make the security code field mandatory for every new card entered online or over the phone. Optional fields invite fraudsters to skip the check entirely. Sending it on every eligible transaction also prevents “S” results caused by a form that drops the field.
Set a Rule for Each Response Code
Decide in advance what happens on M, N, P, S, and U. Most merchants decline on N, review P and U against other data, and let M through to the next layer of checks.
Rate-Limit Retries to Stop Card Testing
Cap how many times a single session, device, IP address, or card number can retry a failed code. A burst of small authorizations with repeated N results is a classic sign of card testing.
Pair the CVV Check With Other Signals
Combine the result with an address verification service check, device fingerprinting, and 3D Secure authentication for orders that look risky. A matched code on a high-risk transaction still deserves a closer look when other signals disagree.
Keep the Code Out of Logs and Storage
Audit checkout scripts, error logs, support tickets, and analytics tools to confirm none of them capture the security code. Shoppers whose stolen card details come from a merchant’s own logs create a breach, a compliance problem, and a fraud problem at once. Teams working to prevent credit card fraud should treat the CVV as data that passes through and is never kept.
Make the CVV Code Your First Filter for Online Orders
The CVV code proves little on its own, yet it filters out a large share of low-effort fraud at almost no cost. Require it on every card-not-present order, act on every result code, limit retries, and never store it. Then layer address checks, device data, and authentication on top so the orders that pass the CVV check still face real scrutiny.
Frequently Asked Questions
What does CVV mean?
CVV stands for card verification value. It is the three or four digit security code printed on a payment card that helps confirm the buyer has the card during an online or phone purchase.
Is the CVV the same as the security code?
Yes. CVV, CVV2, CVC2, CID, and card security code all refer to the same printed code, and the name changes by card network.
Where is the CVV on a debit card?
On a Visa, Mastercard, or Discover debit card, the CVV is the three digit code printed on the back of the card. It works the same way as the code on a credit card from that network.
Where is the CVV on an Amex card?
American Express prints a four digit code, called the CID, on the front of the card. Enter that four digit code when an online checkout asks for the security code.
Do virtual credit cards have a CVV?
Yes. Each virtual card number comes with its own security code and expiration date, which the shopper enters at checkout like any other card.
Can merchants store the CVV for recurring payments?
No. PCI DSS prohibits storing card verification codes after authorization, including for card-on-file and recurring billing, even with customer consent or encryption.
Charity Amancio
Charity Amancio specializes in SaaS solutions for global eCommerce businesses, including payments and risk management applications. She bridges the gap between technology and merchant needs, offering practical perspectives on the tools shaping eCommerce. Her insights appear regularly in B2B publications covering the digital commerce space.













