[thelist] asp code to verify credit cards
Seb
seb at poked.org
Tue Jul 22 12:29:42 CDT 2003
On Tue, 22 Jul 2003 17:56:27 +0100, David Turner <david.turner at synergy.tv>
wrote:
> hi all,
>
> does anybody have any asp code that verifies all the following cards?
>
> Visa
> Master Card
> Discover
> American Express
> -----------
> Diners Club
> enRoute Card
> JCB Card
> -----------
> Switch
> Delta
> Solo
>
> i am hoping for open source code/ freeware.
Hi David,
What do you mean by "verify"? If you're looking for a simple digit check to
ensure the card number is a valid card number, there's the Luhn Mod 10
algorithm. Here's a google that will provide links to sites with various
language-specific methods of checking:
http://www.google.com/search?q=mod+10+credit+card+number&sourceid=opera&num=100&ie=utf-
8&oe=utf-8
Worth noting is the first result:
http://www.beachnet.com/~hstiles/cardtype.html
Which lists the prefix digits of common card types, so you can quickly
reject nonsense card numbers.
If by "verify" you mean actually perform the transaction or compare the
provided details against an actual account, then you're in the realm of
pay-for third-party authentication servers, such as datacash, worldpay,
etc.
- seb
--
http://poked.org
More information about the thelist
mailing list