Your cart is empty
Shop now
+

Test Expiry Card: Valid Dates and Format Guide

Explore

Test Expiry Card: Valid Dates and Format 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

Test Expiry Card: Valid Dates and Format Guide

What is a test expiry card?

A test expiry card is a fake card number paired with a made-up expiration date inside a sandbox payment environment. No real account sits behind the number, so the date only has to pass the same format checks a live card would pass. Developers use these pairs to test checkout forms, saved-card logic, and renewal jobs without moving money.

card expiry checker

Why test cards carry an expiry date

Payment forms validate the expiry field before they contact an issuer. A sandbox that skipped the field would hide bugs in your validation code, your database schema, and your error messages. Test dates give you a controlled value to push through those checks.

card expiry validation

  • Front end checks: month range, two-digit or four-digit year, no past dates.
  • Back end checks: storage format, card-on-file updates, token refresh.
  • Renewal logic: what happens when a stored card reaches its expiry month.

How test expiry dates are formatted

Most gateways expect MM/YY, where MM runs from 01 to 12 and YY is the last two digits of the year. Some APIs want MM/YYYY, and others take the two parts as separate fields. Check the sandbox docs for the exact shape before you hardcode a value.

test card expiry

  • MM/YY: the common choice on web checkout forms.
  • MM/YYYY: common in server-to-server API payloads.
  • Split fields: expiry_month and expiry_year sent as integers.
  • ISO style: YYYY-MM when the date is stored in a database.

Future dates vs expired dates

A future date keeps the card valid, which is what you need for a successful test charge. A date in the past flips the same number into a decline case, which is useful for testing your error copy. Pick the direction that matches the scenario in front of you.

expiry date test card

Which expiry date should you use?

  1. Start with the test number your processor publishes for an approved charge.
  2. Pair it with any future date, such as 12/34 or 01/35.
  3. Run the charge and confirm your app stores the date in the format your database expects.
  4. Repeat with a past date, such as 01/20, and check that the decline path fires.
  5. Keep both values in a fixture file so every environment uses the same data.

Stripe states in its test card table that any future expiration date works with its published numbers. Other processors publish the same kind of table with slightly different rules. Match the date to the outcome you are testing, not to a real card.

How a gateway validates an expiry date

Validation runs in stages, and each stage can reject the input on its own. Knowing the order helps you find where a test case fails.

  1. Parse the string and strip spaces or slashes.
  2. Reject months below 01 or above 12.
  3. Compare the date to the current month and reject past values.
  4. Check the card number against the Luhn algorithm.
  5. Send the request to the sandbox and read the response code.

Step three is the one that surprises people. A date that passed last year fails today, so old fixtures rot. Store test dates far in the future, or compute them at run time.

Does the expiry date change the decline reason?

Sometimes. Several sandboxes tie decline behavior to the test card number, not the date. Others use a past date to produce an expired_card response. Test both paths if your app branches on the decline code.

  • expired_card: the date has passed.
  • incorrect_cvc: the CVC check failed, unrelated to the date.
  • card_declined: a generic refusal from the issuer.

Testing saved cards and renewals

Expiry dates matter most after the first charge. A card on file has a date that will pass, and your app has to handle the failure that follows.

  • Expiring soon: many apps warn the customer a month before the date.
  • Expired on file: the renewal attempt should fail and ask for a new card.
  • Updated date: card updater services can return a new expiry for a live card, so leave room in your schema for that change.

Sandbox clocks do not move, so you cannot wait for a date to pass. Seed the stored record with a past date and run the renewal job by hand.

Test card data vs real card data

A test card is a string you can share in a repo. A real card number, expiry, and CVC belong to a person's account, and using that trio without permission is card fraud. PCI DSS treats the CVC as sensitive authentication data that must not be stored after a transaction is authorized. That is why every test suite should use published sandbox numbers and nothing else.

FAQ

What expiry date should I put on a test card?

Any future MM/YY value works for most sandboxes, such as 12/34. If the processor documents a specific date for a test case, use that instead.

Can I use an expired date on purpose?

Yes. A past date is the standard way to trigger an expired-card decline without touching a live account.

Do test card numbers work in live mode?

No. Sandbox numbers are rejected by production systems, and production numbers do not exist in sandbox tables.

Why does my test date get rejected?

Common causes are a past year, a four-digit year sent to a two-digit field, or a month written as 13 or 00. Check the field format first.

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