This class can be used to validate credit card numbers.
It checks the integrity of the number by using the mod 10 algorithm.
The class can also check a credit card number of a given card type by looking at the number prefix. Currently it can check whether the card type is: VISA, Mastercard, American Express, Diners Club, Discover or JCB. |