Card Number Validation System: Checks, Limits, and What Proves a Card

Our Cards

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

related article

giftcardimage

Where to Use?

Redeem your gift cards at any of our Merchants

related article

Where to Buy?

You can purchase a gift card from any of these locations

related article

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 card number validation system is not one check. It is a chain of checks that get progressively harder to fake, and each layer answers a different question. Format rules tell you whether the digits could be a card number. The Luhn checksum tells you whether someone typed it correctly. BIN lookup tells you which network and issuer it points at. CVV and AVS matching tell you whether the person on the other end has the physical card and knows the billing address. Only the issuer authorization tells you whether the account is real, open, and funded. Everything before that last step is inference.

The layers, in the order they fire

Luhn is a typo filter, not a fraud filter

The Luhn algorithm walks the digits from right to left, doubles every second one, subtracts 9 from any result above 9, and sums everything. If the total is divisible by 10, the number passes. That is all it does.

What it catches: a mistyped digit, a swapped pair. What it does not catch: a fabricated number that happens to land on the right check digit. Roughly one in ten random digit strings passes Luhn. Test card numbers published by the networks pass it on purpose. So a green checkmark next to a card field means the arithmetic works, nothing more.

Card structure and the IIN

ISO/IEC 7812 defines the numbering scheme. The first digit is the major industry identifier, the next digits form the issuer identification number, then comes the individual account number, and the last digit is the check digit. Primary account numbers run up to 19 digits, though most consumer cards sit at 15 or 16. BIN ranges get reassigned and expanded over time, so any local list of prefixes goes stale. Pull BIN data from your processor instead of hardcoding it.

CVV and CVC: proof of possession

The security code is derived by the issuer from the account number, expiration date, and a service code, using a key only the issuer holds. The printed three or four digit code is commonly called CVV2, CVC2, or CID depending on the network. Because the code cannot be computed without the issuer key, a correct match is decent evidence that someone has the card in hand.

PCI DSS classifies the security code as sensitive authentication data. It cannot be stored after authorization, and it should not be retained at all. Merchants pass it through to the processor and drop it. If a checkout page stores the CVV, that is a compliance failure, not a feature.

AVS and 3D Secure are signals, not verdicts

AVS compares the numeric part of the street address and the ZIP against what the issuer has. Results come back as codes: full match, ZIP only, no match, not supported. Coverage is strong in the US, weaker in many other markets, and a partial match is not the same as fraud. 3D Secure adds an authentication step at the issuer, often with a liability shift, but it also adds friction and abandonment.

Authorization is the only real answer

The issuer looks at account status, available credit, velocity, and its own models, then returns an approval or a decline reason. Those reasons matter. Insufficient funds, do not honor, expired card, and pickup card mean different things and lead to different follow-up actions. A validation system that never reaches the issuer is guessing.

Why a Luhn-valid number is still not a card

Anyone can compute a check digit. The formula is public. This is the single most common mistake in DIY validation: treating a passed checksum as evidence of a live account. It is not evidence of anything except that the field was filled in plausibly.

Putting it into a checkout flow

Use client-side structure and Luhn checks for fast feedback, then re-validate on the server because client checks are trivially bypassed. Use BIN lookup to set card brand, expected length, and whether a CVV is required. Tokenize so the raw account number never sits in your database, and let the processor handle security code verification, AVS, and authorization. Keep your logs free of full account numbers. Scope reduction is cheaper than any fraud tool you can buy.

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