Validates a credit-card number using luhn's algorithm.
The number of the credit card.
The allowed length of digits. If it's null it allows credit card numbers to be any length.
True if the credit card number is valid according to the allowed digits and luhn's algorithm, false otherwise.
See Implementation
Validates a credit-card number using luhn's algorithm.