fromCardNumber

fun fromCardNumber(cardNumber: String?): CardBrand

Return

the CardBrand that matches the cardNumber's prefix, if one is found; otherwise, CardBrand.Unknown

Parameters

cardNumber

a card number