Re: Credit Card Validation
From: Andrea Raimondi (rainaple_at_tin.it)
Date: 07/25/04
- Next message: sean frankel: "Re: KbmMemTable rollback error"
- Previous message: Jim McKay: "Re: KbmMemTable rollback error"
- In reply to: Petrus: "Credit Card Validation"
- Next in thread: Andrew Jameson: "Re: Credit Card Validation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Jul 2004 19:45:02 +0200
Petrus wrote:
> Hi
>
> Where can I get a hold of a free updated credit card number
> validation component?
Hi,
Validating credit cards is absolutely not difficult.
I did it in ASP last year, and I can assure you was
very easy.
It's basically founding on a few points:
1) Revert the string and strip the first digit off
2) Separate odd positions from even ones.
3) Sum the even positions and multiply the odd ones.
4) There's another thing to do that I don't remember.
5) Divide by 10 and compare with the stripped digit.
If they match, then it's ok.
Anyway a quick google should give you meaningful
results!
> Thank you in advance
Welcome,
> Petrus
Andrew
- Next message: sean frankel: "Re: KbmMemTable rollback error"
- Previous message: Jim McKay: "Re: KbmMemTable rollback error"
- In reply to: Petrus: "Credit Card Validation"
- Next in thread: Andrew Jameson: "Re: Credit Card Validation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]