HomeGuidesReferenceChangelog↗ Forage Dashboard
Log In
Reference

Events

The EBT Element event object

TypeDescription
typestringA constant string representing the type of event. Either change or ready.
usecase string A constant string representing the type of EBT Element.

One of: tokenize_card, collect_pin.
error object | null An 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