An EBT Element
is a secure Forage-hosted, client-side entity that accepts and submits customer input for an EBT checkout operation.
There is a different EBT Element
for each checkout operation:
ForageCardElement
: Store tokenized EBT card numbers for future useForagePinElement
:
EBT Element
lifecycle
EBT Element
lifecycleBefore you can create an
EBT Element
, you need a Forage instance.
Step 1: Create the EBT Element
EBT Element
const tokenizeCardElement = forage.create('tokenize_card')
Step 2: Attach the EBT Element
to the DOM
EBT Element
to the DOMtokenizeCardElement.mount('tokenize-card-container')
If you’re building in React, then mount the EBT Element in the component that renders the element’s parent container.
Step 3: Destroy the EBT Element
EBT Element
tokenizeCardElement.destroy()
EBT Element
methods
EBT Element
methodsYou can call the following methods on an EBT Element:
EBT Element
events
EBT Element
eventsYou can listen for the following events on an EBT Element: