RE: [PEAR-DEV] Mod 10 for Payment package?

From: Date: Wed, 17 Sep 2003 15:20:54 +0000
Subject: RE: [PEAR-DEV] Mod 10 for Payment package?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21635@lists.php.net to get a copy of this message
For sure. I plan on using the Mod 10 code that is already in Validate, but I'm adding a few more things: 1.) Expiration validation 2.) Basic number validation (ie. Should we even bother with Mod 10 because the "number" passed was '123asdf34325') 3.) Use PEAR_Error and error codes for more complex error handling. After I finish that I plan on updating Validate::creditcard() to use Validate_Finance_Creditcard. --Joe -- Joe Stump http://www.joestump.net "How would this sentence be different if pi equaled 3?" -----Original Message----- From: Stefan Neufeind [mailto:stefan@neufeind.net] Sent: Wednesday, September 17, 2003 4:41 AM To: pear-dev@lists.php.net Cc: Joe Stump; Pierre-Alain Joye; Piotr Klaban Subject: Re: [PEAR-DEV] Mod 10 for Payment package? Hi Piotr, could you send me and Joe the "patch" also, please? Joe volunteered to work on such a functionality and I talked to Pierre that it would be a good idea to have a furhter improved (meaning: more complex) checking of creditcards and that Validate_Finance_Creditcard as a separate class would be a good idea for that. Have a look at Validate_Finance_IBAN in CVS please. For sure your contributions are always welcome. But maybe Joe could have a look at it, compare it with his ideas and if he has further contributions / checks / ... could streamline all the up-coming ideas? Stefan On 17 Sep 2003 at 10:36, Piotr Klaban wrote: > On Tue, Sep 16, 2003 at 10:35:57AM -0400, Joe Stump wrote: > > I've noticed the Payment package has all sorts of > > transaction/verification options, but doesn't include the more > > simple Mod 10 algorithm. Is anyone working on this? Would this be a > > good idea for a package? > > I have submitted the patch for Validate package to include such a > thing, but as a private method. Maybe Pierre-Alain Joye would look > into the mailbox and would change the patch and Validate would have > such a general function.

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