How to Test CVV for Mobile Purchases
Learn how to test CVV for mobile purchases safely and effectively.
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 field is the card-verification input on a checkout form, filled with a sandbox value while a developer tests payment code. It sits next to the card number and expiry, takes 3 digits (4 for American Express), and carries no link to a real card account.
Processors run these fields in test mode. A test CVV paired with a test card number produces a simulated authorization, so you can check form logic, error messages, and API responses without moving money.
A sandbox CVV works with a sandbox card number only. No tool can test a real card's CVV, because that check happens at the issuer during a live authorization.
Processors publish their own lists of test cards, and each entry pairs a number with a CVV value. Stripe, Adyen, Braintree, and Authorize.net all keep these lists in public docs.
Read your processor's page before you write assertions. A test that passes on one gateway can fail on another because the fixed values differ.
A CVV input has narrow rules, and a test suite should cover each one.
inputmode="numeric" so phones open the number pad.autocomplete="cc-csc" so password managers and browsers map it right.Keep the field out of stored form state. If your app caches the checkout form, exclude the CVV from that cache.
These bugs show up in almost every checkout review.
Fix the logging first. A leaked test value is harmless, but the same code path leaks real ones.
PCI DSS bans storing the card verification code after authorization, in any form, encrypted or not. That rule applies to test setups too, because code gets copied from test to production.
In most sandboxes, yes. Many processors ignore the CVV when the card number is a test number and no real issuer is involved. Check your processor's docs, since some require the exact value listed with the test card.
No. A real CVV check only happens when the issuer authorizes a charge. Any service that claims to validate a real CVV is guessing, and the result means nothing.
Yes, for American Express. Detect the brand from the card number prefix and raise the max length before the buyer types.
Two causes. You picked a test card built to force a security code decline, or you mixed test and live keys in the same session.
Use a hint that shows the digit count for the detected brand. A fixed "123" placeholder confuses Amex buyers who need 4 digits.