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:
ForageEbtCardNumberElement
: Store tokenized EBT card numbers for future useForageEbtBalanceElement
: Check the balance of an EBT accountForageEbtPaymentElement
: Capture an EBT payment
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 tokenizeEbtCardElement = forage.create('ebt_card_tokenize_number')
Step 2: Attach the EBT Element
to the DOM
EBT Element
to the DOMtokenizeEbtCardElement.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
tokenizeEbtCardElement.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: