APIs for Businesses (Test)
Home
Services
  • Checkout / Deeplink
  • Merchant Proxy
Home
Services
  • Checkout / Deeplink
  • Merchant Proxy
Default module
Default module
  1. MOBILE SDKS
  • CHECKOUT/ DEEPLINK
    • CHECKOUT/ DEEPLINK
      • Overview
      • Webhook
      • Full Example
      • FAQ
      • MOBILE SDKS
        • Flutter SDK
        • iOS SDK
        • Android SDK
      • WEB SDKS
        • Web SDK
      • Transaction Initiation
      • Transaction Verification
      • Authorization
  • test
    • CHECKOUT/ DEEPLINK
      • Overview
      • Webhook
      • Full Example
      • FAQ
      • MOBILE SDKS
        • Flutter SDK
        • iOS SDK
        • Android SDK
      • WEB SDKS
        • Web SDK
      • Transaction Initiation
        POST
      • Transaction Verification
        POST
      • Authorization
        POST
  • Merchant Proxy
    • Merchant Proxy
      • Overview
      • Full Example
      • FAQ
      • Proxy
      • Webhook
      • test
  • Bill24 Proxy
    • Bill24 Proxy
      • Overview
      • Full Example
      • FAQ
      • Test
      • Push Customer
      • Push Bill
      • Get Queue
      • Get Queue Detail
      • Webhook
      • Create Payment
      • Get Payment
  1. MOBILE SDKS

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:")

 
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:

FieldTypeRemark
contextContext*key (context) that show bottomSheet
fragmentManagerFragmentManager*getSupportFragmentManager() (for Java)
supportFragmentManager (for kotlin)
tranIdString*Transaction number at Bill24 side
refererKeyString*Can be any key to identity the client side or referer URL
languageStringThe language to display
km : Khmer*(default)*
en : English
darkModeBooleanThe option display themes payment checkout
false : Theme Light (default)
true : Theme Dark
isProductionBooleanThe 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:

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

Modified at 2024-08-22 07:36:04
Previous
iOS SDK
Next
Web SDK