Your cart is empty
Shop now
+

Card Expiration Test: Validate Expiry Dates at Checkout

Explore

Card Expiration Test: Validate Expiry Dates at Checkout

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

Card Expiration Test: Validate Expiry Dates at Checkout

The short answer

A card expiration test verifies one narrow thing: whether your payment flow reads, validates, and forwards an expiration date correctly. Run it in your processor's sandbox, use test card numbers your processor publishes, and include the month boundary where a card that expires this month is still good through the last day of that month. If you are trying to confirm whether a card you do not own is live, that is a different activity and this guide does not cover it. Everything below applies to cards your business owns or to sandbox credentials.

more on this topic

What the test actually checks

Four behaviors matter, and a useful test plan isolates each one.

expiry test card

  • Format handling. The field accepts MM/YY and MM/YYYY, rejects month 00 and month 13, and does not silently swap month and year.
  • Expiry rejection. A card dated last month or last year is declined before authorization is attempted, or declined by the processor with the correct response code.
  • Month boundary. A card dated the current month is accepted on the 1st and on the last day of that month. This is the single most common source of false failures.
  • Pass-through fidelity. The date that leaves your server matches the date the customer typed. Leading zeros, four-digit years, and trailing spaces are the usual suspects.

What to look for in a test setup

A sandbox that mirrors production rules

Your processor's test environment should apply the same validation logic as live mode. If it does not, your passing tests mean nothing. Confirm this before you write a single test case, and re-confirm after any processor-side change.

Expiry Date Test Card Guide: Where to Buy CVV

A written test matrix

Keep the matrix in version control next to the checkout code. When someone changes the form, the matrix tells them what to re-run. A matrix that lives in a spreadsheet on one person's laptop gets stale within a quarter.

related article

Request and response logs

You need to see the authorization request your server sends and the response it receives. Without that pair, you cannot tell whether a decline came from your own validation or from the issuer.

Clear separation of client and server checks

The browser should catch obvious typos for a better experience. The server should re-validate everything. A test that only exercises the browser tells you nothing about what happens when a scripted request skips the form.

Parameter bands to cover

Each row below is a distinct input class. Run all of them against every card brand you accept, because brands differ in how they treat edge cases.

  • Expired by one month, six months, and several years.
  • Expires in the current month, tested on day 1 and on the final day.
  • Expires next month, and expires several years out.
  • Month values of 00, 13, and blank.
  • Year values in two-digit and four-digit form.
  • Malformed input with slashes, spaces, or letters mixed in.
  • Missing expiration field entirely, to confirm the request is rejected rather than sent with a null.
  • Leap-year February, to catch date libraries that normalize badly.

Pitfalls that produce false results

  • Timezone drift. A server running in UTC can treat a card as expired a day early for customers in other zones. Compare dates in a fixed reference, not local server time.
  • Testing only the happy path. A single passing test card proves the wiring, not the validation.
  • Using live card numbers in staging. Real account data in a test environment creates a compliance problem and often a contractual one.
  • Storing the security code. The expiration date is cardholder data and needs protection when stored. The CVV or CVC is sensitive authentication data and must not be stored after authorization under any circumstances.
  • Treating expiry as a security control. It is a data field. Fraud prevention lives in authentication, velocity checks, and address verification.
  • Skipping regression runs. Checkout code changes often. Re-run the matrix after each release.

FAQ

Does an expired card always decline?

For a card-not-present transaction, usually yes. Recurring and merchant-initiated charges are a partial exception, because account updater services can refresh a stored expiration date and keep a subscription alive without the customer doing anything.

Is the expiration date sensitive data?

It is cardholder data, which means it falls inside the scope of your data protection obligations when you store it. It is not sensitive authentication data, so storing it is permitted with the right controls. The security code is the opposite: do not store it.

Can I test without real card numbers?

Yes. Every major processor publishes test card numbers, and most supply specific numbers that simulate declines, expired cards, and processing errors. Use those.

What format should the field accept?

Accept MM/YY and MM/YYYY on input, normalize internally, and send the format your processor documents. Two-digit years are conventional but ambiguous, so convert them before the request leaves your server.

What's New

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