OnBinChanged
Event triggered when the card BIN (first 6 digits) changes. This event is fired whenever the user types or deletes digits in the BIN portion of the card number, allowing for real-time card type detection.
Parameters
cardBin
The first 6 digits of the card number, or null if deleted
Example:
when (event) {
is CardNumberTextFieldEvent.OnBinChanged -> {
event.cardBin?.let { bin ->
// Fetch card details based on BIN
fetchCardDetails(bin)
}
}
}
Content copied to clipboard