Flutter SDK
Flutter SDK
Enable Subscribe Direct Debit into your iOS/Android mobile app with Flutter.
The Bill24 iOS/Android SDK with Flutter helps you build customizable to enable subscirbe direct debit from your Apps. 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_direct_debit_sdk: ^1.0.0-beta.2
Or run this command:
flutter pub add b24_direct_debit_sdk
And you can import the package:
import 'package:b24_direct_debit_sdk/b24_direct_debit_sdk.dart';
Now you can access our `function` to initiate SDK.
To initiate SDK or load SDK you must use this class name B24DirectDebitSdk.initSdk
Parameters Request:
Field | Type | Remark |
---|---|---|
context | Context* | key (context) current text to open BottomSheet |
subscriptionNo | String* | Subscription number at Bill24 |
side | ||
refererKey | String* | Can be any key to identity the client side or referer URL |
language | String | The language to display km : Khmer*(default)* en : English |
darkMode | Boolean | The option display themes payment checkout false : Theme Light (default) true : Theme Dark |
isProduction | Boolean | The option for environment false : For environment testing*(default)* true : For environment production |
Example code:
void main() {
B24DirectDebitSdk.initSdk(
context: context,
subscriptionNo: '879839883',
refererKey: '123X',
isDarkMode: false,
languageCode: 'km',
isProduction: false,
);
}
Grant Permission for iOS
Add configuration to open Deeplink Info.plist
<key>LSApplicationQueriesSchemes</key>
<array>
<string>https</string>
<string>http</string>
</array>
Grant Permission for Android
Add configuration to open Deeplink AndroidManifest
<uses-permission android:name="android.permission.INTERNET" />
<queries>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="https" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="http" />
</intent>
</queries>
Support Version:
Dart SDK:^3.5.x
Flutter SDK: >=1.17.0
iOS minimun version 13.0
Android minimun version 5.0 | API level : 21
:::note
Use this endpoint to Init Subscription.
:::