CVV Test Case Testing Guide
Learn how to effectively test CVV test cases for secure transactions.
Redeem your gift cards at any of our Merchants
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.
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.
CVV test case guidelines define the checks a payment form must run on the card verification value before an authorization request leaves the checkout. They cover format (three digits for Visa, Mastercard, and Discover, four for American Express), required-field behavior, invalid-character handling, and how the system reacts to each issuer response code. A complete suite tests the input field and the server-side response path.
Card brands use different lengths and names for the same security code. Build the test matrix from the brand, not from a fixed three-digit assumption.
These cases exercise the input itself. Run each one on the checkout form, then confirm the request payload matches what the field should send.
A mismatch does not always stop an authorization. The issuer returns a verification result, and the merchant decides how to act on it. Test every branch.
Use sandbox card numbers from your payment processor. Stripe, Adyen, Braintree, and similar gateways publish test PANs that trigger specific verification responses. Never paste a real card number into a staging environment, even for a quick check, because the number then sits in logs, fixtures, and screenshots.
Name test cards by behavior in your fixtures: cvv-match, cvv-mismatch, cvv-unchecked. Behavioral names keep the suite readable when a processor rotates its test numbers.
PCI DSS treats the CVV as sensitive authentication data. It may be used to process a transaction and must not be stored after authorization, in any form, including encrypted form.
Add a negative test that searches the log output for the test value after a run. If the string appears anywhere, the build fails.
No. Most gateways let you submit an authorization without it, and the issuer returns an unverified result. Many processors charge a higher rate or decline when the code is missing, so check your gateway rules.
No. PCI DSS forbids storing sensitive authentication data after authorization. Recurring and subscription charges rely on a token or a stored account number instead.
In a sandbox it means you used a test card number configured to return a mismatch. In production it means the code entered does not match the issuer record, which may point to a typo or to a card number that does not belong to the person paying.
Four. American Express prints a four-digit CID on the front of the card, above and to the right of the card number. Every other major brand uses three digits on the back.