ForageConfig

data class ForageConfig(val merchantId: String, val sessionToken: String)

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

Pass a ForageConfig instance in a call to setForageConfig to configure an Element.

Constructors

Link copied to clipboard
constructor(merchantId: String, sessionToken: String)

Creates an instance of the ForageConfig data class.

Properties

Link copied to clipboard

A unique Merchant ID that Forage provides during onboarding, as in 123ab45c67. The Merchant ID can be found in the Forage Sandbox or Production Dashboard.

Link copied to clipboard

A short-lived token that authenticates front-end requests to Forage. To create one, send a server-side POST request from your backend to the /session_token/ endpoint.