CVV Test Cases for Testing: Sandbox Numbers Only

Our Cards

Choose from any of our gift cards to give to your loved ones

cvv test case examples in development

giftcardimage

Where to Use?

Redeem your gift cards at any of our Merchants

related article

Where to Buy?

You can purchase a gift card from any of these locations

cvv test case examples

ABOUT US

about

What is ONYX GiftCards?

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.

What is a Gift Card?

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.

How it Works?

  • Buy an Onyx Gift Card at these local stores
  • Give your gift card to friends, family, co-workers, etc.
  • The recipient can shop at our select merchants nationwide
  • Your friends, family, co-workers, etc. will present their gift card at checkout to pay for your item(s)
  • They will walk away happy with the best gift ever...the gift of Choice

Why ONYX GiftCards?

  • Save TIME. No need to run around looking for the perfect gift
  • Redeem from a variety of business island-wide. We will continue adding businesses as fast as ONYX grows.
  • ONYX Gift Cards do not expire
  • Cards are valued at convinient amounts to meet every need and occasion

Build your CVV test cases from the sandbox card numbers your payment processor publishes, and treat every real card number as out of scope. A CVV test case is a scripted check: a card number, an expiry date, a three or four digit security code, and the response the gateway should return. No legitimate test plan needs a live card, and any storefront or message board that sells CVVs is trading in stolen data. Buying, selling, or storing that data is a crime in the US and puts you outside PCI scope the moment it touches your systems.

What a CVV test case actually covers

Testers often assume the CVV check is one field. It is a chain of checks, and each link deserves its own case.

What to look for in a test card set

A usable test set covers each card brand you accept, each response outcome you handle, and each environment you deploy. Look for a documented list, a stated expected result for every entry, and coverage of both approvals and declines. If a provider ships a test suite, confirm it includes CVC-specific outcomes rather than generic failures. Confirm the numbers work with sandbox keys only, and that the same number cannot be charged against a live account.

Parameter bands that matter

Card brand drives the CVV length: three digits for the major brands, four for American Express. Expiry should be a future date for approvals, plus one documented expired number for the decline path. Amount and card number usually trigger simulated declines, so keep a table that maps each test number to its expected result code. Response codes to cover include approval, generic decline, insufficient funds, incorrect CVC, expired card, and processing error. Environment settings: sandbox API keys, a separate test merchant account, and logging that masks the code field.

Pitfalls to avoid

  1. Running test cases against live keys and a live merchant account.
  2. Logging full request bodies, which captures the security code in plain text.
  3. Storing the CVV after authorization. PCI DSS forbids retaining sensitive authentication data once the transaction is authorized.
  4. Using a real customer card for a quick check because the sandbox was slow.
  5. Testing only the happy path and never the mismatch or missing-code path.
  6. Assuming a passing client-side check means the server validated anything.

FAQ

Do I need a real card to test CVV validation?

No. Every major processor publishes sandbox numbers that return the same response codes as live traffic, including incorrect CVC outcomes.

How many digits should the test code have?

Three for Visa, Mastercard, and Discover, four for American Express. Test the wrong length on purpose to confirm rejection.

Can I save a CVV for later charges?

No. PCI DSS prohibits storing the security code after authorization. Save a token from your processor instead.

Why does a test card number fail format validation?

Most validators run a Luhn check plus a length and prefix rule. A number that fails Luhn fails before the gateway ever sees it.

Contact Us

Latest

Latest

Read our complete guide: Should You Buy CVV From a Card Shop? The Honest Buyer's Guide