set Forage Config
Sets the necessary ForageConfig configuration properties for a ForagePanElement. setForageConfig must be called before any other methods can be executed on the ForagePanElement.
// Example: Call setForageConfig on a ForagePANEditText Element
val foragePanEditText = root?.findViewById<ForagePANEditText>(
R.id.tokenizeForagePanEditText
)
foragePanEditText.setForageConfig(
ForageConfig(
merchantId = "<merchant_id>",
sessionToken = "<session_token>"
)
)
Content copied to clipboard
Parameters
forage Config
A ForageConfig instance that specifies a merchantId
and sessionToken
.