Your cart is empty
Shop now
+

Credit Card Validation Test: Verify Card Input in a Payment Form

Explore

Credit Card Validation Test: Verify Card Input in a Payment Form

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

Credit Card Validation Test: Verify Card Input in a Payment Form

A credit card validation test confirms that your payment form accepts correctly formatted card numbers and rejects bad ones before anything reaches a processor. Do it in your processor's sandbox with published test numbers. Real card data never belongs in a test run.

credit card verification test

What the test covers

  • Luhn (mod-10) checksum on the digits
  • Length and prefix rules per card brand
  • Expiration month and year against today's date
  • Security code length per brand
  • Field state and error copy after a failed submit

Prerequisites

  • Sandbox API keys from your payment processor
  • A test card list from the processor's documentation
  • A staging build of the checkout page
  • Access to client-side console and server logs

Procedure

  1. Point the checkout at sandbox credentials and confirm no live key is loaded in the build.
  2. Strip spaces and dashes from the card field, then re-format for display only.
  3. Run the Luhn check on the raw digits and reject the value if the checksum fails.
  4. Apply brand rules for length and prefix, and map the brand before validating the security code.
  5. Validate the expiration as a month and year pair, and compare it to the current date.
  6. Validate the security code as three digits for most brands and four for American Express.
  7. Submit each published test number and record the result for that brand.
  8. Submit deliberately broken values for each rule and confirm the form blocks submission.
  9. Trigger a decline response from the sandbox and check that the message does not expose internal codes.
  10. Log every case with the input, expected result, and actual result.

Test values to use

Every major processor publishes a set of card numbers that pass or fail validation only inside its sandbox. Visa is usually represented by 4242 4242 4242 4242, Mastercard by 5555 5555 5555 4444, and American Express by 3782 822463 10005. Add a few broken variants: one digit short, one digit changed, an expired date, and a two-digit security code. Pull the authoritative list from your processor rather than from a third-party page, because prefix ranges change.

Card Verification Tool Guide: Where to Buy CVV

Common failures

  • Validation runs before formatting is stripped, so padded input fails the checksum
  • Brand detection runs after the security code check, so Amex cards get rejected
  • Expiration accepts a past year because only the month is compared
  • Client-side checks are trusted and the server repeats none of them
  • Error text names the failing rule in detail, which helps someone guess a valid number

Handling real card data

Keep card entry inside a processor-hosted field so the number never touches your server, and store only a token plus the last four digits. That keeps the scope of your payment card data obligations small and gives you a clean boundary for testing. Any test that needs a live authorization should use the card issuer's own sandbox, not a customer's card.

credit card verification test

What's New

What's New

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