b24_direct_debit_sdk 1.0.0-beta.12 b24_direct_debit_sdk: ^1.0.0-beta.12 copied to clipboard
The Bill24 SDK simplifies setting up direct debit payments with banks. With this tool, consumers can subscribe for automatic payments.
B24 Direct Debit #
A flutter plugin to show banks to subscribe direct debit service.
Usage #
To use this plugin,add url_launcher as a dependency in your pubspec.yaml file.
b24_direct_debit_sdk:1.0.0
Requirement #
dart_sdk:^3.5.x
flutter_sdk:>=1.17.0
Configuration #
Ios #
Add configuration scheme in info.plist
<key>LSApplicationQueriesSchemes</key>
<array>
<string>https</string>
<string>http</string>
</array>
Android #
Add configuration scheme in AndroidManifest.xml
<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>
Calling SDK #
import 'package:b24_direct_debit_sdk/b24_direct_debit_sdk.dart';
B24DirectDebitSdk.initSdk(
context: context,
subscriptionNo: '879839883',
refererKey: '123X',
isDarkMode: false,
language: 'km',
isProduction: false,
isPopup:true // use for web only
);
Example #
import 'package:flutter/material.dart';
import 'package:b24_direct_debit_sdk/b24_direct_debit_sdk.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Init SDK Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHome(),
);
}
}
class MyHome extends StatelessWidget {
const MyHome({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: TextButton(
onPressed: () {
//load SDK
B24DirectDebitSdk.initSdk(
context: context,
subscriptionNo: '879839883',
refererKey: '123X',
isDarkMode: false,
language: 'km',
isProduction: false,
isPopup:true // use for web only
);
},
child: const Text("Init SDK")),
),
);
}
}