BrandParams

data class BrandParams(val mask: String = "#### #### #### #### ###", val algorithm: ChecksumAlgorithm = ChecksumAlgorithm.NONE, val rangeNumber: IntArray = CardType.UNKNOWN.rangeNumber, val rangeCVV: IntArray = CardType.UNKNOWN.rangeCVV)

A set of parameters for a card brand.

Parameters

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.

Constructors

Link copied to clipboard
constructor(mask: String = "#### #### #### #### ###", algorithm: ChecksumAlgorithm = ChecksumAlgorithm.NONE, rangeNumber: IntArray = CardType.UNKNOWN.rangeNumber, rangeCVV: IntArray = CardType.UNKNOWN.rangeCVV)

Properties

Link copied to clipboard

The algorithm for validation checkSum.

Link copied to clipboard

Represents format of the current card's number.

Link copied to clipboard

The length of the card's CVC number which a brand supported.

Link copied to clipboard

The length of the card's number which a brand supported.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int