Package-level declarations

Types

Link copied to clipboard
abstract class AbstractForageElement<T : ElementState>(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : LinearLayout, ForageElement<T>

⚠️ Forage developers use this class to manage common attributes across ForageElement types. You don't need to use or worry about it!

Link copied to clipboard
data class ForageConfig(val merchantId: String, val sessionToken: String)

The configuration details that Forage needs to create a functional ForageElement.

Link copied to clipboard

The interface that defines methods for configuring and interacting with a ForageElement. A ForageElement is a secure, client-side entity that accepts and submits customer input for a transaction. Both ForagePANEditText and ForagePINEditText adhere to the ForageElement interface.

Link copied to clipboard
class ForagePANEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.foragePanEditTextStyle) : AbstractForageElement<PanElementState>

A ForageElement that securely collects a customer's card number. You need a ForagePANEditText to call the ForageSDK online-only method to tokenize an EBT Card, or the ForageTerminalSDK POS method to tokenize a card.

Link copied to clipboard
class ForagePINEditText @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.foragePanEditTextStyle) : AbstractForageElement<PinElementState>

A ForageElement that securely collects a card PIN. You need a ForagePINEditText to call the ForageSDK online-only or ForageTerminalSDK POS methods that: