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 name | Required | Description |
---|---|---|
publisherToken | mandatory | The publisher token as presented in the dashboard |
checkoutPublicKey | mandatory | The Checkout key as presented in the dashboard which will be used for displaying the checkout based on the dashboard design configurations |
environment | mandatory | Could be one of the following: sandbox , production |