CardToken
data class CardToken(val token: String, val publicKey: String? = null, val firstSixDigits: String? = null, val expirationMonth: Int? = null, val expirationYear: Int? = null, val lastFourDigits: String? = null, val cardHolder: CardHolder? = null, val status: String? = null, val dateCreated: String? = null, val dateLastUpdated: String? = null, val dateDue: String? = null, val luhnValidation: Boolean? = null, val liveMode: Boolean? = null, val requireEsc: Boolean? = null, val cardNumberLength: Int? = null, val securityCodeLength: Int? = null, val truncCardNumber: String? = null)
Represents a tokenized card for secure payment processing. This class contains the token generated after successful card tokenization, which is used to process payments without handling sensitive card data directly.
Parameters
token
The secure token representing the card, generated after successful tokenization
publicKey
This app public Key
firstSixDigits
First card six digits
expirationMonth
Card expiration Month
expirationYear
Card expiration year
lastFourDigits
Last four digits of the card
cardHolder
Card holder
status
Card status
dateCreated
Date of creation of this token
dateLastUpdated
Date of creation of this token
dateDue
Date of creation of this token
luhnValidation
Card number has passed luhn Validation
liveMode
This is live mode
requireEsc
This require esc
cardNumberLength
Card number length
securityCodeLength
Card security code length
truncCardNumber
Thunc Card Number
Constructors
Link copied to clipboard
constructor(token: String, publicKey: String? = null, firstSixDigits: String? = null, expirationMonth: Int? = null, expirationYear: Int? = null, lastFourDigits: String? = null, cardHolder: CardHolder? = null, status: String? = null, dateCreated: String? = null, dateLastUpdated: String? = null, dateDue: String? = null, luhnValidation: Boolean? = null, liveMode: Boolean? = null, requireEsc: Boolean? = null, cardNumberLength: Int? = null, securityCodeLength: Int? = null, truncCardNumber: String? = null)