This lets you pass the credit card type into the validation routine, which allows it to do card type specific checks for prefix of the card number and number of digits.