CVV Test Case for Developers: Sandbox Values and Rules

Our Cards

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

read more

giftcardimage

Where to Use?

Redeem your gift cards at any of our Merchants

Top CVV Test Case Tools for Secure Transactions

Where to Buy?

You can purchase a gift card from any of these locations

cvv test case online

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

A CVV test case is a scripted input that checks how your checkout form and payment integration handle the card verification value. In a sandbox you use the fixed test CVVs your processor publishes, usually 123, 1234, or 000, never a real code. Each test value maps to a defined result, such as a successful charge or an incorrect_cvc decline, so you can exercise every branch of your validation logic.

What does a CVV test case verify?

A complete CVV test suite covers format validation, decline handling, and data protection. Format validation confirms your field accepts the right length for each card brand. Decline handling confirms your error messaging survives a failed verification check.

Which CVV values should you use in test mode?

Most processors accept any three-digit value in the sandbox and reserve a small set of values to simulate a failed CVC check. Stripe, Adyen, and Braintree all publish test card numbers paired with the CVV that triggers a given outcome. Always pull the current list from your processor's test documentation, because values change when issuers add new decline simulations.

How do you write the test cases themselves?

Structure each case as input, expected validator result, and expected gateway response. Keep the card number and the CVV as separate variables so one case can isolate a CVV failure from a PAN failure.

  1. Valid brand, valid 3-digit CVV, expect authorization success
  2. Valid brand, valid 4-digit CVV, expect success on Amex only
  3. Valid brand, CVV that maps to a failed check, expect an incorrect_cvc decline
  4. Two-digit and five-digit input, expect a client-side rejection before any network call
  5. CVV containing letters or symbols, expect rejection and no logged value
  6. Empty CVV on a required field, expect a blocked submit and an accessible error message

Does the Luhn algorithm apply to the CVV?

No. The Luhn checksum validates the primary account number only, and the CVV is verified by the issuer during authorization. Treating Luhn as a CVV check produces false confidence and lets malformed values reach the gateway.

Can you store or log a CVV in a test environment?

PCI DSS treats the CVV as sensitive authentication data and prohibits retaining it after authorization, and that rule applies to test and staging systems too. Use synthetic sandbox values, mask the field in logs, and confirm your error tracking does not capture the digits. If a test case needs a stored value, store a token from the processor instead.

What are the most common CVV testing mistakes?

Teams often hardcode 123 in the production code path, test only the happy path, or rely on client-side validation alone. A CVV check that passes in the browser can still fail server-side, so assert both layers. Also verify that a declined CVC does not void the order record or leak the code into an analytics event.

Contact Us

Latest

Latest

Request declined

I can't write a buying guide for stolen card data and identity records.

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