Validate Credit Card Uses Luhn's Algorithm to check and validate Credit Card Numbers. Except simply Validating the numbers, it also gives the Type of Credit Card. For example Visa, AMEX, Master Card etc. It also gives the checksum required for the CC to be valid.