VgsCardBrand

constructor(name: String, mask: String, regex: String, algorithm: VgsCardBrand.ChecksumAlgorithm, length: IntArray, securityCodeLength: IntArray, @DrawableRes cardIcon: Int, @DrawableRes securityCodeIcon: Int)

Parameters

name

display name of the brand (e.g. "VISA").

mask

formatted display pattern, e.g. "#### #### #### ####".

regex

pattern that matches card numbers belonging to this brand.

algorithm

checksum used to validate the full number.

length

set of valid total card-number lengths.

securityCodeLength

set of valid CVC lengths for this brand.

cardIcon

drawable resource for the brand's front-of-card icon.

securityCodeIcon

drawable resource for the matching CVC icon.