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.
CVV test case testing means running a payment form or API against fake card numbers in a sandbox and checking that the 3- or 4-digit security code is read, validated, and rejected in the right cases. The card numbers come from the payment processor and exist for testing. No real card data is involved.
Visa, Mastercard, and Discover print 3 digits on the back of the card. American Express prints 4 digits on the front. Networks call the value CVV2, CVC2, or CID. The issuer generates it and prints it. The merchant sends it with an authorization request and may not store it after the response.
Payment processors publish test cards. Stripe lists 4242 4242 4242 4242 as a card that approves in test mode, with any future expiry date and any 3-digit CVC. The same list gives 4000 0000 0000 0002 for a generic decline and 4000 0000 0000 0127 for an incorrect CVC decline. Adyen, Braintree, and Worldpay publish their own sets. Use the numbers from the processor you integrate.
Length by brand. Digits only. No copy of the value in logs, analytics, crash reports, or the database. Card-not-present merchants may run some recurring charges without a CVC, so test both a required and an optional field setting. Network rules on that point vary, so confirm the setting with your acquirer.
PCI DSS Requirement 3.3.1 prohibits storage of sensitive authentication data, which includes the CVV, after authorization. The value may not appear in logs, debug output, or error messages. Test data avoids this issue because sandbox CVC values are not cardholder data.
A sandbox CVC check tests your code. It does not test an issuer decision. Issuer CVC checks run on real authorizations. Testing with a real card number and CVV requires written authorization from the cardholder, the issuer, and the acquirer. Buying, selling, or trading card numbers and CVVs is a federal crime in the US under 18 U.S.C. 1029. A test suite never needs real data.