CardBrand
Entries
Properties
Functions
Link copied to clipboard
If the CardBrand has variants, and the cardNumber starts with one of the variant prefixes, return the length for that variant. Otherwise, return defaultMaxLength.
Link copied to clipboard
Checks to see whether the input number is of the correct length, given the assumed brand of the card. This function does not perform a Luhn check.
Link copied to clipboard