setForageConfig

open override fun setForageConfig(forageConfig: ForageConfig)

Sets the necessary ForageConfig configuration properties for a ForagePINEditText. setForageConfig must be called before any other methods can be executed on the Element.

// Example: Call setForageConfig on a ForagePINEditText Element
val foragePinEditText = root?.findViewById<ForagePINEditText>(
R.id.balanceForagePinEditText
)
foragePinEditText.setForageConfig(
ForageConfig(
merchantId = "<merchant_id>",
sessionToken = "<session_token>"
)
)

Parameters

forageConfig

A ForageConfig instance that specifies a merchantId and sessionToken.