On 22 June 2016 at 23:15, Bert Put <bert....@ipacc.com> wrote: > Hello, > > Fist post, so please let me know if I have posted to the wrong place.
Right place for initial contact. - but we prefer people not to use their fists up front ;-) > Our third party credit card processor has advised us that Mastercard > numbers can be 16,17, 18, or 19 digits. Previously the card number was > only 16 digits long. The Creditcard validator enforces 16 digits, but > rejects card numbers that are 17, 18, or 19 digits long. I have tried to > find "official" documentation on mastercard.com to verify this requirement, > but I can only find anecdotal evidence at the moment. > > Perhaps someone on this list can provide more authoritative information? > If so, is there a timeline for a possible fix? If we can find > authoritative information to confirm the card number length I would be > happy to make the change if someone will guide me through the process. > > Thank you, and please let me know if there is anything I can do to assist > this effort. Well, what we need is documentation on the new format. They added some new prefixes recently, see: https://issues.apache.org/jira/browse/VALIDATOR-392 Have they also added more digits? If so, do they apply to all the BINs or only some? Note that the RE for the current checks is at: https://github.com/apache/commons-validator/blob/trunk/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java#L137 > Regards, Bert --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org