The EBT Element
event object
EBT Element
event objectType | Description | |
---|---|---|
type | string | A 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
change
event object for a ForageCardElement
{
type: 'change',
usecase: 'tokenize_card',
error: {
message: 'Your EBT card number is invalid.'
}
}