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

Flutter SDK

Flutter SDK

Build payments into your iOS/Android mobile app with Flutter.

The Bill24 iOS/Android SDK with Flutter 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 Pub.dev, please check the latest version.

Add dependency to your Flutter project Pubspec.yamlcheck latest version.

dependencies:
b24_payment_sdk: ^1.0.6


Or run this command:

flutter pub add b24_payment_sdk


And you can import the package:

import 'package:b24_payment_sdk/b24_payment_sdk.dart';


Now you can access our `function` to initiate SDK.

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

Example code:

void main() { 
     B24PaymentSdk.intSdk(
        controller: context,
        tranId: "4614B5964908",
        refererKey: "123X",
        //'km' is Khmer, 'en' is English
        language: "km",
        darkMode: false,
        //'true' is production
        isProduction: false,
    );
}

 
Grant Permission for iOS
Add permission to save image in photos inside Info.plist

<key>Privacy - Photo Library Additions Usage Description</key>
<string>App needs access to the photo library for saving images.</string>

 
Grant Permission for Android
Add permission to open new tap for deeplink inside AndroidManifest

<activity android:launchMode="singleInstance">
</activity>

 
Support Version:

Dart SDK:'>=3.1.3 <4.0.0'
iOS minimun version 9.0
Android minimun version 4.1 | SDK/API level 16.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
FAQ
Next
iOS SDK