Re: StrutsValidator.validateCreditCard() returns Long?

2002-05-24 Thread Ted Husted
e I will not call StrutsValidator > then. > > Any help is greatly appreciated. > > Thanks, > > --Michael Marrotte > > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 23, 2002 6:31 PM > To: Struts Users Mailing

RE: StrutsValidator.validateCreditCard() returns Long?

2002-05-23 Thread Michael Marrotte
ist Subject: Re: StrutsValidator.validateCreditCard() returns Long? It was adapted from Perl and Javascript routines that use a "prime of nines" checksum against the number. It also looks to see if the prefix matches one of the usual vendors, and that the length of the number matches wh

Re: StrutsValidator.validateCreditCard() returns Long?

2002-05-23 Thread Ted Husted
It was adapted from Perl and Javascript routines that use a "prime of nines" checksum against the number. It also looks to see if the prefix matches one of the usual vendors, and that the length of the number matches what a given vendor expects. I've run it against thousands of accounts in prod

StrutsValidator.validateCreditCard() returns Long?

2002-05-23 Thread Michael Marrotte
According to the source and docs it returns a boolean. But, the link seems to be broken in the latest docs for this method. Any help on how validateCreditCard() decides what values to return is greatly appreciated. Thanks, --Michael Marrotte