This library allows validation of a creditcard number potentially limiting by accepted card types. For example, if your business only accepts Mastercard and Visa you can limit the valid cards to those types.
A card number can match multiple card types. Overall, a number is valid when it's valid according to luhn algorithm with valid length and type.
Represents possible ranges for a creditcard number. It can be a string or a range with starting and ending digits
Find whether a creditcard number is valid. You can limit what card types are eligible for the validation attempt.
Converts from string MOP (Method of Payment) to CardType
Finds whether card length is one of the valid lengths for the type
List of CardTypeInfo for all supported types
Find card info whose ranges contain a pattern that the card number matches
Card types supported by this library are: American Express (AM), Discover (DS), Diners Club (DC), Mastercard (MC) and VISA (VI).