Re: Credit card validation (Luhn check algorithm)

From: Date: Wed, 22 May 2002 13:29:35 +0000
Subject: Re: Credit card validation (Luhn check algorithm)
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6329@lists.php.net to get a copy of this message
On Wed, May 22, 2002 at 02:37:27PM +0200, Martin Jansen wrote: > 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: > > > 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? > +1 for algorithm_Luhn, it's not a payment service/method, it's a validation routine. BTW Luhn checks aren't only used for creditcards. But it is the most common use for it.. -- With best regards, Dave Mertens, Development Manager dmertens@ism.nl Innovative Solutions in Media BV Schiekade 101 3033 BG Rotterdam, Netherlands Tel. +31-10-2436060 Fax. +31-10-2436066

« previous php.pear.dev (#6329) next »