CVV Test Input Field: Sandbox Values and Validation Rules

Our Cards

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

cvv test input example

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

more on this topic

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

Short answer

A CVV test input field is a form field that runs in a payment sandbox. It accepts the card verification value that belongs to a test card issued by the processor. Test values work in sandbox mode and nowhere else. Sandbox mode does not contact an issuer and does not move money. Use test card numbers and test CVVs. Do not type a real card number or a real CVV into a test field.

Digit count by card network

The Amex 4-digit value is the reason a field cannot hard-code a length of 3. Detect the network from the first digits of the account number, then set the expected length.

Where test values come from

Processors publish tables of test card numbers. Stripe lists 4242 4242 4242 4242 as a Visa test card that accepts any 3-digit CVC, and 3782 822463 10005 as an Amex test card that accepts 4 digits. Stripe also publishes test cards with fixed CVV outcomes: one card returns a CVC check pass, another returns a fail, and another returns unchecked. Check the vendor table for the current values. Test PANs and their CVC rules change.

Validation rules to implement

  1. Accept digits only. Strip spaces and hyphens on paste and on autofill.
  2. Set minlength to 3 and maxlength to 4.
  3. Do not use input type="number". Browsers allow e, plus, minus, and the decimal point in that type. Use inputmode="numeric" with pattern="[0-9]*".
  4. Set autocomplete="cc-csc" so password managers and wallets fill the field.
  5. Attach a visible label. Screen readers need it.
  6. Pass the raw string to the tokenization call. Do not transform it.

What not to do

Do not store the CVV. PCI DSS v4.0 treats the card verification code as sensitive authentication data. Requirement 3.2.1 forbids storage after authorization, with or without encryption. A test field that writes the value to a database, an analytics event, or an error log creates the same finding in test as in production.

Common failure modes

Contact Us

Latest

CVV Test Input Example

Learn how to use a CVV test input example for secure and effective verification of credit card validity.

Latest

CVV Test Tool Buying Guide

Discover the best CVV test tools for secure credit card verification, with essential buying advice, what-to-look-for, and pitfalls to avoid.

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