APIs for Businesses (Test)
Home
Services
  • Checkout / Deeplink
  • Merchant Proxy
Home
Services
  • Checkout / Deeplink
  • Merchant Proxy
  1. MOBILE SDKS
  • 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
  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-01-17 04:50:58
Previous
FAQ
Next
iOS SDK