CVV Length Verification Tool: Digits per Card Network

Our Cards

Choose from any of our gift cards to give to your loved ones

cvv length verification

giftcardimage

Where to Use?

Redeem your gift cards at any of our Merchants

cvv length verification test

Where to Buy?

You can purchase a gift card from any of these locations

CVV Length Test Process Guide for Secure Transactions

ABOUT US

about

What is ONYX GiftCards?

Onyx Gift Cards is a Grenadian company designed to introduce, market and manage gift cards systems in Grenada for retailers and corporations. We are enthusiastic about the effect and influence we will have on the local market. We intend to expand our systems regionally with a range of product offerings and services.

What is a Gift Card?

Gift cards are the preferred way of giving and receiving gifts. They carry a monetary value that can be redeemed for gifts at your favorite store.
Onyx GiftCards are “Open Gift Cards” which means that they can be redeemed at multiple merchant locations. They are standard credit card size, can fit into the average wallet and made of PVC plastic. Onyx GiftCards are Barcoded for security and safety for the consumer and bear a disclaimer at the back.
Onyx Giftcards can be bought with a branded Card backer which is black in colour and is designed to fit the card. There is an area to write a brief message to the recipient as well.

How it Works?

  • Buy an Onyx Gift Card at these local stores
  • Give your gift card to friends, family, co-workers, etc.
  • The recipient can shop at our select merchants nationwide
  • Your friends, family, co-workers, etc. will present their gift card at checkout to pay for your item(s)
  • They will walk away happy with the best gift ever...the gift of Choice

Why ONYX GiftCards?

  • Save TIME. No need to run around looking for the perfect gift
  • Redeem from a variety of business island-wide. We will continue adding businesses as fast as ONYX grows.
  • ONYX Gift Cards do not expire
  • Cards are valued at convinient amounts to meet every need and occasion

A CVV length verification tool checks the number of digits a shopper enters in the card security code field. Visa, Mastercard, and Discover cards use a 3-digit code, while American Express uses a 4-digit code, so the tool confirms the input matches the expected format for that card brand before the payment request is sent. Length verification is a format check only. It does not prove the code is genuine or that the card belongs to the person typing it.

How many digits does a CVV have?

The right length depends on the card network, not on the issuing bank or the country where the card was issued. A validation rule keyed to the card brand handles the difference correctly.

Some regional networks, including UnionPay, also print 3 digits. A small number of card products carry no security code at all, so a form should not hard-block a payment when the brand cannot be identified.

What a length verification tool actually does

  1. Reads the card brand from the first digits of the card number, or asks the customer to select a brand.
  2. Applies the expected digit count for that brand, usually 3 or 4.
  3. Restricts the field to numeric input and caps the maximum length so extra characters cannot be entered.
  4. Returns an inline error and blocks submission when the count does not match.
  5. Passes the code to the payment processor without writing it to a log or database.

Why a length check is not a validity check

Any four random digits satisfy an American Express length rule, and any three satisfy a Visa rule. Only the issuer can confirm that a security code matches the account. Treat the length check as one part of input hygiene, alongside card number validation, expiration date checks, and address verification. It reduces mistyped orders and failed authorizations, and it should never be described to customers as a security guarantee.

CVV and PCI DSS rules

PCI DSS classifies the card security code as sensitive authentication data. Merchants and their processors may not store it after authorization, and it should not appear in logs, error reports, or analytics events. Build the verification tool so the value exists only for the duration of the request. Masking the field and disabling autocomplete on the input also keeps the code out of browser caches.

Implementation checklist

Common questions

Does the CVV length change by country?

No. The digit count follows the card network, so a Visa issued anywhere still carries 3 digits.

Is a CVV the same as a PIN?

No. A PIN authorizes transactions at an ATM or terminal, while the CVV supports card-not-present payments such as online orders.

Should the code field ever be optional?

Most processors allow a transaction without it, but approval rates usually drop. Keep the field required when the brand is known and allow an empty value when it is not.

Contact Us

Latest

Latest

Requirements to Sell CVV Online

Discover the key requirements for selling CVV online and ensure you understand the legal and ethical implications involved.

Read our complete guide: Should You Buy CVV From a Card Shop? The Honest Buyer's Guide