OnLastFourDigitsFilled

data class OnLastFourDigitsFilled(val lastFourDigits: String) : CardNumberTextFieldEvent

Event triggered when the last four digits of a valid card number are entered. This event is only fired when the card number is valid according to the Luhn algorithm and the last four digits have been entered.

Parameters

lastFourDigits

The last four digits of the valid card number

Example:

when (event) {
is CardNumberTextFieldEvent.OnLastFourDigitsFilled -> {
showCardPreview(event.lastFourDigits)
}
}

Constructors

Link copied to clipboard
constructor(lastFourDigits: String)

Properties

Link copied to clipboard