Configuration

Create instance of the BridgeAPI

private val bridge = BridgeAPI()

This is the bridge instance that allows you to initialize and open the Checkout process.

Setup Configuration

After updating the Android Manifest as described above, proceed with setting up the necessary configurations to initialize the process:

val configModel = ConfigModel(  
	publisherToken = "YOUR_PUBLISHER_TOKEN", 
	checkoutPublicKey = "YOUR_CHECKOUT_PUBLIC_KEY",
	environment = "sandbox" // or "production"
)

Here’s a closer look at each configuration parameter:

Parameter nameRequiredDescription
publisherTokenmandatoryThe publisher token as presented in the dashboard
checkoutPublicKeymandatoryThe Checkout key as presented in the dashboard which will be used for displaying the checkout based on the dashboard design configurations
environmentmandatoryCould be one of the following: sandbox, production