CVV Test Case Examples in Development
Explore essential CVV test case examples for effective development 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 that a payment form reads, validates, and sends the 3 or 4 digit security code, then discards it. Development and QA use test card numbers from the payment processor's sandbox. Real card data never belongs in a development, staging, or CI environment.
The CVV is a 3 digit code on the back of Visa, Mastercard, and Discover cards. American Express uses a 4 digit card identification number on the front. The code is not part of the card number and is not printed on the magnetic stripe. PCI DSS Requirement 3.2 prohibits storing the value after authorization, in any form.
Each processor publishes test card numbers for its sandbox: Stripe, Adyen, Braintree, and Authorize.net all do this. A sandbox number passes only against the sandbox endpoint. A live card number declines in sandbox, and a sandbox number declines in production. Copy the numbers from the processor's documentation and pin the version you tested against.
Run a search of logs, database columns, analytics events, and error traces for the test CVV value after a full checkout. The value should appear in none of them. Check application performance monitoring captures and support ticket exports as well. Mask the input, keep it out of the URL, and send it only over TLS to the processor's tokenization script.
Unknown: the exact test numbers differ by processor and change with API versions. Read the current sandbox documentation before you write the fixtures.