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/ DEEPLINK
Merchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
CHECKOUT/ DEEPLINK
Merchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
  1. CHECKOUT/ DEEPLINK
  • CHECKOUT/ DEEPLINK
    • Overview
    • Webhook
    • Full Example
    • FAQ
    • Flutter SDK
    • MOBILE SDKS
      • iOS SDK
      • Android SDK
    • WEB SDKS
      • Web SDK
    • Authorization
      POST
    • Transaction Initiation
      POST
    • Transaction Verification
      POST
    • Webhook
      POST
  1. CHECKOUT/ DEEPLINK

Flutter SDK

Flutter SDK

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

The Bill24 iOS/Android SDK and Web SDK with Flutter helps you build customizable payments into your app and Web. We provide powerful and customizable UI screens and allow your customer to make payment Easier and Faster.

Mobile App

Web SDK

 

1 How to integrate

First, 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.1.13


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,
        isPopup: true
    );
}

 
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>

<key>LSApplicationQueriesSchemes</key>
  <array>
    <string>https</string>
  </array>

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

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

<queries>
    <intent>
      <action android:name="android.intent.action.VIEW" />
      <data android:scheme="https" />
  </intent>
</queries>

 
Support Version:

Dart SDK:'>=3.1.3 <4.0.0'
iOS minimun version 13
Android minimun version 5 | SDK/API level 21

 

NOTE

To initiate SDK or load SDK you must provide tranId that you get from endpoint Transaction Initiation.

Modified at 2025-03-06 09:23:23
Previous
FAQ
Next
iOS SDK