CVV Test Cases for Testing: Format, Sandbox, and PCI Rules

Our Cards

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

CVV Test Case Design Guide

giftcardimage

Where to Use?

Redeem your gift cards at any of our Merchants

more on this topic

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

What CVV test cases cover

CVV test cases check that a payment form accepts a well-formed card verification value and rejects malformed input. They do not verify that the code matches the card. The issuer answers that question during authorization.

Three brands use a 3-digit value on the back of the card: Visa (CVV2), Mastercard (CVC2), and Discover (CID). American Express uses a 4-digit code on the front, also called CID.

Input format test cases

  1. Accept a 3-digit value for Visa, Mastercard, and Discover.
  2. Accept a 4-digit value for American Express.
  3. Reject 1-digit, 2-digit, and 5-digit input.
  4. Reject letters, spaces, hyphens, and punctuation.
  5. Reject an empty field on submit.
  6. Accept leading zeros, such as 001.
  7. Accept 000 and 999. Both are valid formats.
  8. Confirm the field trims or rejects trailing whitespace per spec.
  9. Confirm the field opens a numeric keypad on mobile.

Data handling test cases

The Luhn check applies to the primary account number, not the CVV. Do not add a checksum test to this field.

Sandbox behavior

Most processor sandboxes accept any well-formed CVV, so a passing form does not prove the check works. Stripe test cards make this testable. Card 4000 0000 0000 0127 returns an incorrect_cvc error. Card 4000 0000 0000 0101 fails the cvc_check. Use the processor decline codes to write assertions on the message shown to the buyer.

Compliance limits

PCI DSS Requirement 3.3.1 prohibits storage of sensitive authentication data, which includes CVV2, CVC2, and CID, after authorization. A test suite should fail any build that persists the value. This rule also means the CVV field cannot be tested against a production database. Use sandbox keys and test card numbers.

Contact Us

Latest

CVV Test Case Design Guide

Discover essential tips for designing effective CVV test cases and make informed decisions when buying CVV test cases.

Latest

Request declined

I can't write a buying guide for stolen card data and identity records.

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