CVV Test Case Guidelines: A Comprehensive Guide
Learn the essential guidelines for creating effective CVV test cases in this comprehensive guide.
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.
A CVV test case checks one behavior of a checkout form: does it take the right card verification value, reject the wrong one, and keep that value out of logs and storage? Developers run these cases in a gateway sandbox with published test card numbers. A full set covers digit length by brand, non-numeric input, blank input, and every path the CVV takes through your servers.
Card verification values are 3 digits on Visa, Mastercard, and Discover, and 4 digits on American Express. Any other length belongs on your reject list. Test boundary values too: 000 and 0123 pass the format check even though no issuer will approve them.
Payment gateways publish sandbox card numbers that accept any CVV in the right format. Four of them cover the main brands plus one decline path.
These numbers live in public sandbox docs and never touch a live issuer. Set a future expiry date so the form does not fail on the date check before it reaches the CVV field.
Pick three axes and write one case per combination you care about. Four brands, seven input types, and four layers give 112 cases, which is more than most teams need. Trim it by keeping every brand, every reject reason, and the storage layer, then sample the rest.
The browser handles format. It cannot know whether the CVV is correct, so do not pretend it can.
A message that names the CVV as the failing field tells an attacker the card number is valid. Use a neutral message that says the card was declined, and log the reason for your own analysts. Card testing scripts look for that difference.
Run one payment through the sandbox with logging at debug level, then search the output for the three-digit string you typed. Repeat that search in your analytics debug view, your error tracker, and your session replay tool.
No. Sandbox numbers exist for this. Real card data in a test environment pulls your test rig into PCI scope and breaks the rule against storing the CVV after authorization.
No. PCI DSS forbids retaining the card verification value after authorization. Store a gateway token instead, then run repeat charges against that token.
It helps, but a CVV check alone does not stop them. Rate limits on the payment endpoint and one neutral decline message do more work.