Your cart is empty
Shop now
+

CVV Test Scenarios for Checkout: A QA Guide

Explore

CVV Test Scenarios for Checkout: A QA Guide

We guarantee gift cards direct to your inbox immediately.
Shop Now!

Let's Work Together

Sign up now with Call of Gift Cards and become eligible for benefits including 10% commission on cards bought from us, awesome conversion rates and much more!
Find Out More

Digital Gift Cards

The market for digital goods and services are growing rapidly. One of the true shifts in online behaviour is the switch from traditional direct online payments and purchase to wallets and gift cards. ...read more
+

Digital Gift Cards

The market for digital goods and services are growing rapidly. One of the true shifts in online behaviour is the switch from traditional direct online payments and purchase to wallets and gift cards. We invite you to start your own online business as a partner of ours. By signing up as a partner you’ll get access to one of the largest gift card databases in the world. All you need to focus on is to market your website and products. Gift cards are quickly outperforming traditional gifts, as they give the recipient the choice to pick their own present from a variety of options. The range of e-gift cards available on the Call of Gift Cards's partner sites includes popular categories such as restaurants, games, travel and fashion.

Gift Vouchers

Traditional gift vouchers are printed paper gifts available in set values that can be spent in specific stores. Open-loop, semi-open loop, and closed-loop are often terms used when referring to gift v...read more
+

Gift Vouchers

Traditional gift vouchers are printed paper gifts available in set values that can be spent in specific stores. Open-loop, semi-open loop, and closed-loop are often terms used when referring to gift vouchers. All gift cards sold via our partners’ websites are closed loop. This means that the gift card can only be spent at a single brand location, for example, an Xbox voucher can only be spent at Xbox etc.

Our Gift Cards

Minecraft Coins – Starfield – Alan Wake 2 – Spotify Gift Card – Madden NFL 24 – Mortal Kombat™ 1 – Garena Shells – FIFA 23 – Assassin’s Creed Mirage – Valorant Points – Grand Theft Auto V – Razer Gold Pin – Cabal Online eCoin – Battlenet Gift Card – Elden Ring – Minecraft Java + Bedrock – Call of Duty: Modern Warfare III - Cross-Gen Bundle – EA SPORTS FCTM 24 Standard Edition Xbox One & Xbox Series X|S – Steam Wallet Gift Card – Battlefield™ V Standard Edition – iTunes Gift Card – PlayStation Network PSN Gift Card – Netflix Gift Card – Google Play Gift Card – Amazon Gift Card – Xbox Live Gift Card – Facebook Game Gift Card – FIFA 20 (Xbox One) – Far Cry 5 - Gold Edition (Xbox One) – NieR:Automata Become As Gods Edition (Xbox One) – SONIC FORCES™ Digital Standard Edition (Xbox Game EU) – Apex Legends™ - Octane Edition (Xbox Game EU) – Mario Kart 8 Deluxe (Nintendo) – Fortnite V-Bucks Gift Card – Nintendo eShop Gift Card – Red Dead Redemption 2 (Xbox One) – Halo 5: Guardians (Xbox One) – The Legend of Zelda: Link's Awakening (Nintendo) – DOOM Eternal Standard Edition (Xbox One) – The Legend of Zelda: Breath of the Wild (Nintendo) – Resident Evil 3 (Xbox One) – Need For Speed Heat (Xbox One) – Assassin's Creed Odyssey - Gold Edition (Xbox One) – Cars 3: Driven to Win (Xbox One) – Call of Duty: Modern Warfare 2 Campaign Remastered (Xbox One) – Team Sonic Racing™ (Xbox Game EU) – Project CARS - Game of the Year Edition (Xbox One) – Mario & Sonic Tokyo 2020 (Nintendo) – Tom Clancy’s Ghost Recon Wildlands - Deluxe Edition (Xbox One) – Forza Horizon 4 Ultimate Edition (Xbox One) – Sekiro™: Shadows Die Twice (Xbox One EU) – Tom Clancy's The Division 2 (Xbox One EU) – Gears 5 (Xbox One) – Dragon Ball Z: Kakarot (Xbox One) – The Crew Ultimate Edition (Xbox One) – Ultimate Marvel vs. Capcom 3 (Xbox One) – Pokemon Let's Go Eevee! (Nintendo) – Sonic Mania (Xbox Game EU) – UFC 3 - Deluxe Edition (Xbox One) – Mass Effect Andromeda - Standard Recruit Edition (Xbox One) – BioShock: The Collection (Xbox One) – A Way Out (Xbox One) – Borderlands 3 (Xbox One) – Overcooked! 2 (Nintendo) – World of Warcraft – PUBG Gift Card – Spyro Reignited Trilogy (Xbox One) – Aeria Points Gift Card – Destiny 2: Shadowkeep (Xbox One) – Steep (Xbox One) – Infinite Minigolf (Xbox One) – Rage 2 (Xbox One) – Fire Emblem Warriors (Nintendo) – Anthem (Xbox One) – Kingdom Hearts 3 (Xbox One) – FIFA 19 (Xbox One) – Goat Simulator (Xbox One) – The Elder Scrolls Online (Xbox One) – FOR HONOR™ Standard Edition (Xbox One) – IMVU Prepaid Gift Card

CVV Test Scenarios for Checkout: A QA Guide

The reference set worth starting with is Stripe's documented test cards, because they trigger CVV-specific declines in test mode without touching real cardholder data. I compared candidate test sets on four criteria: coverage of CVV and CVC response codes, parity between sandbox and production field mapping, repeatability of results across runs, and whether the documentation tells a developer what the checkout should render when the check fails.

more on this topic

What a CVV test scenario is meant to prove

A CVV test scenario answers one question: when the card verification value is wrong, missing, or unverifiable, does the checkout fail in the right place with the right message and the right recovery path? That goal is narrow, and it stays separate from testing card numbers, expiry dates, or 3D Secure.

cvv input validation test cases

Confirm these behaviors before you ship:

related article

  • The field enforces the length each brand requires, three digits for most cards and four for American Express, and rejects letters and spaces.
  • A failed verification produces a distinct decline rather than a generic payment failure.
  • The customer can correct the code and retry without re-entering the whole card.
  • Wallets, stored credentials, and network tokens, where the CVV is absent by design, follow a different code path and do not get blocked.
  • The raw value never lands in logs, analytics events, or your own database.

Top pick: Stripe test cards

Stripe publishes test card numbers that force specific CVV outcomes, which makes it the most direct way to exercise a verification failure in a sandbox. The number 4000 0000 0000 0127 returns an incorrect CVC decline, while 4000 0000 0000 0002 returns a generic decline, so you can prove the checkout renders two different messages for two different causes.

more on this topic

  • Pros: decline codes are documented alongside the test cards, so mapping a code to user-facing copy is a lookup rather than a guess.
  • Pros: the API shape in test mode matches the live integration, so handler logic you validate in the sandbox carries over.
  • Pros: results are deterministic, which makes the scenarios usable in an automated regression suite.
  • Cons: the mapping is Stripe's. Another processor will return different codes for the same failure.
  • Cons: some card-issuer edge cases, particularly international cards, behave differently in test mode than in production.
  • Cons: not every response code has a dedicated trigger card, so a few branches need a mock instead of a real sandbox call.

Reach for this set when Stripe is your processor, or when you need a fast reference for what a CVV decline looks like on the wire while you build your own fixtures.

Second option: Adyen and Braintree sandboxes

Adyen and Braintree both ship sandbox test cards with CVC-related refusal reasons, and both document the result codes their APIs return. If your stack runs on either gateway, testing against its own sandbox beats translating Stripe codes and hoping the mapping holds.

  • Pros: refusal reasons arrive in the gateway's native vocabulary, which keeps your error handler honest.
  • Pros: both vendors cover soft and hard declines, so you can test the retry path.
  • Cons: documentation for CVV-specific triggers is thinner than Stripe's, and test values are scattered across pages.
  • Cons: sandbox behavior for wallet and stored-credential flows can lag production.

Choose this route when the gateway itself is what you are certifying, for example before a processor migration or a new market launch.

Scenario matrix to run

  1. Correct CVV with a valid card: authorization succeeds and the order moves forward.
  2. Wrong CVV: a CVC mismatch decline comes back and the checkout shows a correction prompt.
  3. Blank CVV on a card that requires one: client-side validation blocks submission before any network call.
  4. Four-digit CVV on an American Express card: accepted. Three digits on the same brand: rejected.
  5. CVV omitted on a wallet or stored-credential payment: the transaction proceeds on the liability shift path.
  6. CVV mismatch followed by a correct retry: the second attempt succeeds and no duplicate order is created.
  7. CVV check passes and address verification fails: the decline reason matches the failing check, not the passing one.
  8. Gateway timeout mid-authorization: the checkout does not tell the customer their code was wrong.

Mapping gateway codes to checkout copy

The test is only useful if the output reaches the screen. Write a table that pairs each code with the exact string the customer sees, and keep the mapping in one place. A CVC mismatch should read as a request to recheck the code on the card, and a generic decline should read as a request to contact the issuer. When both failures render the same sentence, the scenario has failed even though the API call returned the right code.

Pitfalls that show up in review

  • Testing only the happy path and assuming the decline branch works because the code compiles.
  • Logging the CVV field value while debugging, then shipping the log line.
  • Letting the retry flow create a second authorization without voiding the first.
  • Reusing production card data in a sandbox. Test cards exist to make that unnecessary.
  • Treating a soft decline and a hard decline as one case, which pushes customers into retry loops they cannot win.

Questions that come up

Do I need a real card to test CVV handling?

No. Every major gateway provides test card numbers and sandbox credentials for this purpose, and using them keeps cardholder data out of your development environment.

Can I store the CVV so I can compare it on a later transaction?

No. PCI DSS classifies the CVV and CVC2 as sensitive authentication data, and it cannot be retained after authorization. Save the verification result, never the value.

How many scenarios is enough?

Enough to cover every branch your error handler can take: success, mismatch, missing value, wrong length, retry, wallet, and timeout. If your handler has a branch no scenario reaches, that branch is untested.

What's New

cvv test cases for qa

A practical guide to CVV test cases for QA: format rules, brand-specific lengths, paste and error handling, and sandbox-safe fixtures.

What's New

Why I Can't Write a CVV Buying Guide

I can't write a buying guide for CVVs or stolen card data. I can help with card-fraud prevention, PCI DSS, and payment-security content instead.

Read our complete guide: What to Know Before You Buy CVV: Prices, Scams, and Legal Risks