CardUtils

object CardUtils

Utility class for functions to do with cards.

Functions

Link copied to clipboard
fun getPossibleCardBrand(cardNumber: String?): CardBrand
Link copied to clipboard
fun isValidLuhnNumber(cardNumber: String?): Boolean

Checks the input string to see whether or not it is a valid Luhn number.