It took me a couple of minutes to find a site that I could source for this.
The card is valid until the last day of the month indicated, after the last [sic] 1 day of the next month; the card cannot be used to make a purchase if the merchant attempts to obtain an authorization. – Source
- This is assumed to be a typo and that it should read “. after the first day of the next month;. “
If you are writing a site which takes credit card numbers for payment:
- You should probably be as permissive as possible, so that if it does expire, you allow the credit card company to catch it. So, allow it until the last second of the last day of the month.
- Don’t write your own credit card processing code. If^H^HWhen you write a bug, someone will lose real money. We all make mistakes, just don’t make decisions that turn your mistakes into catastrophes.
answered Sep 10 ’08 at 13:40
lots of big companies dont even use your expiration date anymore because it causes auto-renewal of payments to be lost when cards are issued with new expiration dates and the same account number. This has been a huge problem in the service industry, so these companies have cornered the card issuers into processing payments w/o expiration dates to avoid this pitfall. Not many people know about this yet, so not all companies use this practice.
answered Aug 5 ’09 at 2:46
A card is valid through the last day of the month shown, (e .g. if the Good Thru date is 03/12,the card is valid through March 31, 2012 and expires on April 1, 2012 .)
It is located below the embossed account number. If the current transaction date is after the “Good Thru” date, the card has expired.
answered Sep 10 ’08 at 13:48
+1 For visa.com source. Thanks for the edit also Royce Williams (Much better to have the quote in the answer, with a link to the source). user66001 Jan 31 ’14 at 19:01
How do time zones factor in this analysis. Does a card expire in New York before California? Does it depend on the billing or shipping addresses?
In your example a credit card is expired on 6/2008.
Without knowing what you are doing I cannot say definitively you should not be validating ahead of time but be aware that sometimes business rules defy all logic.
For example, where I used to work they often did not process a card at all or would continue on transaction failure simply so they could contact the customer and get a different card.