Re: ATTN: Validate Package Maintainer
| From: | Stefan Neufeind | Date: | Sun, 14 Dec 2003 11:58:18 +0000 |
| Subject: | Re: ATTN: Validate Package Maintainer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24408@lists.php.net to get a copy of this message | ||
On 14 Dec 2003 at 12:07, Pierre-Alain Joye wrote:
> On Sun, 14 Dec 2003 11:50:33 +0100
> Pierre-Alain Joye <paj@pearfr.org> wrote:
>
> > On Sat, 13 Dec 2003 23:41:53 -0500 (EST)
> > "Joe Stump" <joe@joestump.net> wrote:
> >
> > > I would recommend making the existing Validate::creditCard() a
> > > wrapper for this.
> >
> > Is there any case where you have to valid only the expiration date,
> > the cvv2, the number or the type? I can imagine to test the number
> > for non supported CC type, but...
>
> Forget that, after a 2nd coffee validate the type is a requirement
> (still the cvv2 but well ;) ).
>
> I see it well in Finance. Stefan?
>
> I would like to keep basic syntax check in Validate (for instance,
> quick CC validation before any call to an online payment system) and
> propose the full CC validation as part of Finance. Comments?
Yeah, that's what I also thought about. My intention was to do it
similar like with IBAN: In Validate itself (e.g. via multiple() ) you
can quickly validate a CC. Also there is the same quick-validatation
possible via Validate/Finance.php. And as far as I understood your
mail now (haven't had a look at the source of the creditcard-class
yet!) there would be a Validate/Finance/Creditcard.php which would be
used if an app wants to verify a CC with all details (e.g. for output
"no, -this or that- part is not valid" etc.
So Pierre, did I get you correctly now?
And finally: Who's gonna do it? I'm currently a bit too work-loaded
before christmas and intend to put the remaining time on work for
Image_Graph. So if Pierre could integrate CC-validation into Finance
that would be really nice. (Pierre, I know I proposed to take the
Finance-part ... but I can't find time to work on the CC-things
befroe 2004 otherwise.)
Regards,
Stefan