HomeGuidesReference
Log In
Reference

Events

The EBT Element event object

Type Description
typestringA constant string representing the type of event. Either change or ready.
usecasestringA constant string representing the type of EBT Element.

One of: tokenize_card, collect_pin.
errorobject | nullAn object indicating an error, or null if no error has occurred.

Example change event object for a ForageCardElement

{
  type: 'change',
  usecase: 'tokenize_card',
  error: {
    message: 'Your EBT card number is invalid.'
  }
}

Supported events