Your cart is empty
Shop now
+

CVV Test Transaction for Developers: Sandbox Codes and Validation Rules

Explore

CVV Test Transaction for Developers: Sandbox Codes and Validation Rules

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 Transaction for Developers: Sandbox Codes and Validation Rules

A CVV test transaction is a payment run in a provider's sandbox using a test card number paired with the CVV that provider publishes for it, so no real card or money is involved. Developers use these runs to confirm the checkout form collects the security code, the authorization request carries it, and the app reacts to the gateway's response. Sandbox CVV values are the only valid ones for testing, and a test card can never be used for a live payment.

cvv test transaction example

What Counts as a CVV Test Transaction?

A CVV test transaction has three parts: a sandbox account, a test card number, and the test CVV that the gateway documents for that card. The run never touches a real bank account or a real cardholder. The goal is to prove your integration handles the security code from form input to gateway response.

test transaction with cvv

  • Test mode API keys, not live keys
  • A test PAN from the provider's published list
  • The CVV value the provider pairs with that PAN
  • A response field such as cvc_check or a matching decline code

Where Do Test CVV Values Come From?

They come from the payment provider, not from any formula. Each processor publishes test card numbers and states which CVV to send with each one. The list changes as providers add decline simulations, so pull it from the docs before you write assertions.

related article

Stripe

Stripe's general test card, 4242 4242 4242 4242, accepts any three digit CVC in test mode. Stripe also lists cards built for failure cases, including ones that force a CVC check failure. Use those cards when you need to code the mismatch branch of your UI.

more on this topic

PayPal, Braintree, and Adyen

The PayPal sandbox generates test card numbers on demand and returns a matching security code with each one. Braintree and Adyen follow the same model through their own test card tables. Use the exact value the generator gives you, because a made up CVV often triggers a generic processing error instead of the case you meant to test.

How Do You Test CVV Handling in Your Own Code?

Split validation into two layers. Your code owns format and length. The gateway owns the pass or fail decision.

  1. Check the length by brand: three digits for Visa, Mastercard, and Discover, four for American Express.
  2. Strip spaces and reject any non digit input before the request leaves your server.
  3. Pass the CVV straight to the gateway inside the authorization call, then drop it from memory.
  4. Run a test charge with a CVV the provider says will fail and confirm your UI shows a card error rather than a crash.
  5. Log the gateway response code and the request ID. Never log the code itself.

Can You Generate a Real CVV?

No. The card verification value is created by the issuing bank and checked by the network against the card's own data and a secret key. It is not a checksum of the card number, so no public algorithm derives it. The Luhn formula validates the card number format, and it says nothing about the security code.

Why Test Mode Is Not the Same as Live Mode

Sandbox rules are looser than production rules. Many gateways skip real issuer checks in test mode, so a passing test does not prove a live transaction will pass. Test mode also has its own rate limits and its own set of decline simulations. Treat sandbox results as coverage of your code paths, not as proof of issuer behavior.

Mistakes That Break CVV Testing

  • Mixing live keys with test card numbers
  • Shipping a hardcoded test CVV in a production config file
  • Writing the CVV into logs, analytics events, or a database column
  • Testing only the success case and never the mismatch case
  • Assuming the decline code list is the same across gateways

What Compliance Rules Shape Your Test Design?

PCI DSS treats the CVV as sensitive authentication data and bars storing it after authorization, encrypted or not. That rule covers live cardholder data, so sandbox values are safe to use. Keep one code path for both environments, so production never gains a branch that saves the value.

Developer FAQ

Is it legal to test a CVV I made up?

Use only the test CVVs your provider publishes. A random code sent against a live card number is not a test, and attempts to validate it against real accounts fall under card network fraud rules and federal law.

Do test CVVs expire?

No. Most sandbox cards ship with one fixed CVV and a far future expiry date.

Which error means the CVV failed?

Look for a cvc_check field set to fail, or a decline code such as incorrect_cvc, CVV failure, or N7 in ISO 8583 responses.

Can I test a card brand my gateway does not list?

Some networks publish test BIN ranges for their own developer programs, but the gateway has the final say on which cards its sandbox accepts. Add a unit test for format handling and leave the authorization test to the networks that support it.

Quick Reference

  • Test CVV values come from the provider's documentation, not from a generator
  • Test mode never uses a real card, and any attempt to submit one is fraud
  • Your code checks length and digits; the gateway checks the match
  • The CVV must never be stored after authorization
  • Run at least one forced mismatch test per release

What's New

CVV Test Transaction in Sandbox Guide

Discover how to conduct a CVV test transaction in the sandbox for secure testing and validation. Learn where to buy CVV and essential tips. Read our guide now.

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