CardInputListener

interface CardInputListener

A listener for card input events.

Functions

onFieldComplete
Link copied to clipboard
open fun onFieldComplete(field: CardField)

Called whenever a field is determined to be complete and valid. This may be called multiple times if the user edits the field. If a field is invalid (e.g. an expiration date in the past) then this callback will not get called

onFocusChange
Link copied to clipboard
open fun onFocusChange(field: CardField)

Called whenever the field of focus changes

onInputChanged
Link copied to clipboard
open fun onInputChanged(isValid: Boolean, fieldStates: Map<CardField, ICardFieldState>)

Called whenever input changes on the control.