Re: Credit card validation (Luhn check algorithm)
| From: | Dave Mertens | Date: | Wed, 22 May 2002 14:29:12 +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-6335@lists.php.net to get a copy of this message | ||
On Wed, May 22, 2002 at 04:24:43PM +0200, Wolfram Kriesing wrote:
> LIMBOURG Arnaud wrote:
>
> >+1 for a Validation namespace
> >
> >
> yes, Validation is needed, but i think Luhn belongs into algorithm, or not?
> it can be used by validation, sure, but it is an algorithm, right?
Algorithms are offen used for validation.. Validation classes uses
algorithms, looks like the chicken/egg problem..
RC4 is also a algorithm, but is placed in Crypt_Rc4. So why shouldn't we
place the luhn class into the validation namespace..
And than i commit my validation classes. It hate to be the first who's
starting a new namespace ;-))
--
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