android.build.gradle
and android.gradle.properties
to be able to use the SDK:
android.build.gradle
:android.gradle.properties
:Initialize Tonder's SDK Instance
Field Name | Description |
---|---|
platforms | A list or null that specifies which platforms the checkout is available on. If null, it implies universal compatibility. |
apiKeyTonder | Your Tonder API key. You can find it in your Tonder dashboard. |
returnUrl | The URL to which the user will be redirected after the transaction is completed. |
successUrl | The URL to which the user will be redirected after a successful transaction. |
renderPaymentButton | A boolean that specifies whether a payment button should be rendered by the checkout plugin. Setting this to false implies that the button rendering is handled elsewhere or not needed. |
Set Payment Data
customerData
parameter:customerData
Launch the Checkout Interface
injectCheckout
to inject Tonder’s checkout into the current widget tree:Add 3DS verification
verify3dsTransaction()
method to validate if the 3DS challenge was successful or not. Use the example below to call the method and handle the response as needed:Display the Checkout UI
Scaffold
widget to contain and display the checkout interface:Update the application