APIs for Businesses
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
  1. MOBILE SDKS
  • Payment Method API
    • Overview
    • Response Code
    • MOBILE SDKS
      • iOS SDK
      • Android SDK
    • Authorization
      • Authorization
    • Customer
      • Get Customer Details
      • Update Customer
      • Delete Customer
      • Create Customer
    • Get Payment Methods
      • Get Payment Methods
    • Get Wallet Balance
      • Get Wallet Balance
    • Settle Payment
      • Settle Payment
    • Get Bills
      • Get list bills
      • Get single bill
    • Get transaction Details
      • Get Transaction Detail
  • Activate Sub Biller API
    • Overview
    • Response Code
    • Authorization
      POST
    • Onboarding
      POST
    • Get Available Banks
      GET
    • Add Link Account
      POST
    • Verify Linked Bank Account
      POST
    • Sub-Biller Portal
      POST
  1. MOBILE SDKS

Android SDK

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

How to integrate

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.

  • To initiate SDK or load SDK you must use this class name B24PaymentSdk.initInstantPayment

Sample Display

Property request:

PropertyTypeDescription
contextString*key (context) that show bottomSheet
fragmentManagerString*supportFragmentManager (for kotlin)
userSyncCodeString*Unique code created from the customer endpoint (Create Customer)
refererKeyString*Can be any key to identity the client side or referer URL
languageStringLanguage setting ("en" for English, "km" for Khmer)
isDarkModeBooleanEnables dark mode (true for dark mode, false for light mode)
isProductionBooleanIndicates environment (true for live, false for testing)
isDisplayCurrencySymbolBooleanDiplay 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)
   
 );



  • To initiate SDK or load SDK to the wallet detail B24PaymentSdk.instantPaymentSdkDetail

Sample Display

Property request:

PropertyTypeDescription
contextString*key (context) that show bottomSheet
customerSynCodeString*Unique code created from the customer endpoint (Create Customer)
paymentMethodIdString*Wallet id that get from endpoint (Get Wallet balance )
refererKeyString*Can be any key to identity the client side or referer URL
languageStringLanguage setting ("en" for English, "km" for Khmer)
isDarkModeBooleanEnables dark mode (true for dark mode, false for light mode)
isProductionBooleanIndicates environment (true for live, false for testing)
isDisplayCurrencySymbolBooleanDiplay 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)
);



  • To initiate SDK or load SDK shortcut to top up amount B24PaymentSdk.instantPaymentSdkTopUp

Sample Display

Property request:

PropertyTypeDescription
contextString*key (context) that show bottomSheet
paymentMethodIdString*Wallet id that get from endpoint (Get Wallet balance )
refererKeyString*Can be any key to identity the client side or referer URL
languageStringLanguage setting ("en" for English, "km" for Khmer)
isDarkModeBooleanEnables dark mode (true for dark mode, false for light mode)
isProductionBooleanIndicates environment (true for live, false for testing)
isDisplayCurrencySymbolBooleanDiplay 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:

VersionSDK/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.

Modified at 2025-10-21 10:25:32
Previous
iOS SDK
Next
Authorization