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"  
)

Here’s a closer look at each configuration parameter:

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