commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25869] - Validate Diners Club, Carte Blanche, and JCB cards
Date Sat, 17 Jan 2004 19:26:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25869>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25869

Validate Diners Club, Carte Blanche, and JCB cards

dgraham@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From dgraham@apache.org  2004-01-17 19:26 -------
Rather than add these cards to CreditCardValidator I added the ability to plugin 
new card types.  This prevents CreditCardValidator from having to implement 
checks for every brand of card and is a much cleaner implementation.  

To plugin your custom cards you need to implement the CreditCardValidator.
CreditCardType interface and pass an instance to CreditCardValidator.
addAllowedCardType() before validation begins.  See the CreditCardValidatorTest 
class for an example of Diners Club card validation.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message