CardModel
constructor(bin: Int? = null, length: LengthModel? = null, validation: String? = null, securityCode: SecurityCodeModel? = null)
Parameters
bin
Bank Identification Number (first 6 digits of card)
length
Card number length requirements
validation
Validation method to be used for the card
securityCode
Security code (CVV) requirements
Example:
val card = CardModel(
bin = 411111,
length = LengthModel(min = 16, max = 16),
validation = "standard",
securityCode = SecurityCodeModel(
mode = "mandatory",
length = 3
)
)
Content copied to clipboard