CardType

The type of a card.

Parameters

regex

The regex used to identify the card type.

resId

The drawable resource ID for the card's icon.

mask

The mask used to format the card number.

algorithm

The checksum algorithm used to validate the card number.

rangeNumber

The valid lengths for the card number.

rangeCVV

The valid lengths for the CVC.

Entries

Link copied to clipboard

Elo card type.

Link copied to clipboard

Visa Electron card type.

Link copied to clipboard

Maestro card type.

Link copied to clipboard

Forbrugsforeningen card type.

Link copied to clipboard

Dankort card type.

Link copied to clipboard

Visa card type.

Link copied to clipboard

Mastercard card type.

Link copied to clipboard

American Express card type.

Link copied to clipboard

Hipercard card type.

Link copied to clipboard

Diners Club card type.

Link copied to clipboard

Discover card type.

Link copied to clipboard

UnionPay card type.

Link copied to clipboard

JCB card type.

Link copied to clipboard

Unknown card type.

Properties

Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resId: Int

Functions

Link copied to clipboard

Map CardType to CardBrand.

Link copied to clipboard
fun valueOf(value: String): CardType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.