Vgs Card Brand
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.
security Code Length
set of valid CVC lengths for this brand.
card Icon
drawable resource for the brand's front-of-card icon.
security Code Icon
drawable resource for the matching CVC icon.