CHECKOUT/ DEEPLINK
Light Mode
Android SDK
Android SDK
Build payments into your Android mobile app.
The Bill24 Android SDK with Java and Kotlin helps you build customizable payments into your app. We provide powerful and customizable UI screens and allow your customer to make payment Easier and Faster.
1 How to integrate
Frist, you can get Bill24 package SDK from maven central , please check the latest version.
Add dependency inside Gradle
check latest version.
implementation("io.github.Bill24CoLtd:b24paymentsdk:<latest>")
Now you can access our function
to initiate SDK.
To initiate SDK or load SDK you must use this class name B24PaymentSdk().intSdk
Parameters Request:
Field | Type | Remark |
---|---|---|
context | Context* | key (context) that show bottomSheet |
fragmentManager | FragmentManager* | getSupportFragmentManager() (for Java) supportFragmentManager (for kotlin) |
tranId | String* | Transaction number at Bill24 side |
refererKey | String* | Can be any key to identity the client side or referer URL |
language | String | The language to display km : Khmer*(default)* en : English |
darkMode | Boolean | The option display themes payment checkout false : Theme Light (default) true : Theme Dark |
isProduction | Boolean | The option for environment false : For environment testing*(default)* true : For environment production |
Example code for Java:
B24PaymentSdk.intSdk(
context, //context
getSupportFragmentManager(), //fragmentManager
"4614B5964908", //tranId
"123X", // refererKey
"km", // language
false, // darkMode
false, //isProduction
);
Example code for Kotlin:
B24PaymentSdk.intSdk(
context, //context
supportFragmentManager, //fragmentManager
"4614B5964908", //tranId
"123X", // refererKey
"km", // language
false, // darkMode
false, //isProduction
);
Support Version:
Version | SDK/API Level |
---|---|
Android 7+ | Level 24.0 |
:::note
To initiate SDK or load SDK you must provide tranId
that you get from endpoint Transaction Initiation.
:::
Last modified: a year ago