Build payments into your Android mobile app.
The Bill24 Android SDK with 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
Frist, you can get latest Bill24 package SDK as below:
implementation("io.bill24:b24paymentsdk:1.1.25")
Now you can access our function to initiate SDK.
B24PaymentSdk.initInstantPaymentProperty request:
| Property | Type | Description |
|---|---|---|
context | String* | key (context) that show bottomSheet |
fragmentManager | String* | supportFragmentManager (for kotlin) |
userSyncCode | String* | Unique code created from the customer endpoint (Create Customer) |
refererKey | String* | Can be any key to identity the client side or referer URL |
language | String | Language setting ("en" for English, "km" for Khmer) |
isDarkMode | Boolean | Enables dark mode (true for dark mode, false for light mode) |
isProduction | Boolean | Indicates environment (true for live, false for testing) |
isDisplayCurrencySymbol | Boolean | Diplay Khmer currency symbol (៛) |
Example code
B24PaymentSDK.instantPaymentSdk(
this,
supportFragmentManager,
userSyncCode:"C00001",// customer need to create first
refererKey: '3804',
language: 'en', // 'en' for English, 'km' for Khmer
isDarkMode: false, // True for dark mode
isProduction: false // False for testing, true for
live,
isDisplayCurrencySymbol: false//true for enable khmer currency)
);
B24PaymentSdk.instantPaymentSdkDetailProperty request:
| Property | Type | Description |
|---|---|---|
context | String* | key (context) that show bottomSheet |
customerSynCode | String* | Unique code created from the customer endpoint (Create Customer) |
paymentMethodId | String* | Wallet id that get from endpoint (Get Wallet balance ) |
refererKey | String* | Can be any key to identity the client side or referer URL |
language | String | Language setting ("en" for English, "km" for Khmer) |
isDarkMode | Boolean | Enables dark mode (true for dark mode, false for light mode) |
isProduction | Boolean | Indicates environment (true for live, false for testing) |
isDisplayCurrencySymbol | Boolean | Diplay Khmer currency symbol (៛) |
Example code
B24PaymentSdk.instantPaymentSdkDetail(
this, // context
"C0020", //customerSynCode
"8d036742-b2f7-447c-8fad-ef2e6ef2a6dc", // paymentMethodId
"3804", // refererKey
"km", // language
false, // isDarkMode
false, // isProduction
false // true for enable khmer currency)
);
B24PaymentSdk.instantPaymentSdkTopUpProperty request:
| Property | Type | Description |
|---|---|---|
context | String* | key (context) that show bottomSheet |
paymentMethodId | String* | Wallet id that get from endpoint (Get Wallet balance ) |
refererKey | String* | Can be any key to identity the client side or referer URL |
language | String | Language setting ("en" for English, "km" for Khmer) |
isDarkMode | Boolean | Enables dark mode (true for dark mode, false for light mode) |
isProduction | Boolean | Indicates environment (true for live, false for testing) |
isDisplayCurrencySymbol | Boolean | Diplay Khmer currency symbol (៛) |
Example code
B24PaymentSdk.instantPaymentSdkTopUp(
this, // context
"8d036742-b2f7-447c-8fad-ef2e6ef2a6dc", // paymentMethodId
"3804", // refererKey
"km", // language
false, // isDarkMode
false, // isProduction
false // true for enable khmer currency)
);
Support Version:
| Version | SDK/API Level |
|---|---|
| Android 7+ | Level 24.0 |
NOTE
To initiate SDK or load SDK you must provide userSyncCode that you get from endpoint Create Customer.