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.yaml
check 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.
:::