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