Validating credit card number length
The card number is usually prominently embossed on the front of a payment card, and is encoded on the magnetic stripe and chip, but may be imprinted on the back of the card.
The card number prefix identifies the issuer of the card, and the digits that follow are used by the issuing entity to identify the cardholder as a customer and which is then associated by the issuing entity with the customer's designated bank accounts.
2013) account ranges where the issuer can mix 13 and 16 digit card numbers.
Visa's VPay brand can specify PAN lengths from 13 to 19 digits and so card numbers of more than 16 digits are now being seen. In 2011, UK domestic Maestro (formerly Switch) was aligned with the standard international Maestro proposition with the retention of a few residual country specific rules.
Effective October 16, 2009, Diners Club cards beginning with 30, 36, 38 or 39 have been processed by Discover Card.
On November 3, 2014, Master Card announced that they were introducing a new series of BIN ranges that begin with a “2” (222100–272099).
On November 8, 2004, Master Card and Diners Club formed an alliance.