Re: Credit card validation (Luhn check algorithm)
| From: | Martin Jansen | Date: | Wed, 22 May 2002 12:37:27 +0000 |
| Subject: | Re: Credit card validation (Luhn check algorithm) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6327@lists.php.net to get a copy of this message | ||
On Wed, 22 May 2002 13:21:55 +0200 (CEST), Ondrej Jombik wrote:
> For elementary credit card validation is Luhn check algorithm
>provided. I implemented this into PHP, because it wasn't already
>done. You can look at it here:
>
>http://nepto.atomicpile.sk/mix/php/Credit_Card/Luhn_Check.php.txt
Looks cool.
> If you are interested in this implementation, you can add it
>into PEAR. Name should probably change to relate existing package
>(Payment?).
Well, it's not that easy to find a proper category/name for the
algorithm: For me both Payment_Luhn and Algorithm_Luhn sound
reasonable. Other opinions?
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/