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")),
),
);
}
}
Libraries
- app/app_config
- app/languages/generated/intl/messages_all
- app/languages/generated/intl/messages_en
- app/languages/generated/intl/messages_km
- app/languages/generated/l10n
- app/themes/custom_theme
- b24_direct_debit_sdk
- core/constants/contants
- core/data/request_api
- core/helpers/format_hexa_color
- core/helpers/load_localizations
- core/providers/direct_debit_provider
- core/socket/socket_manager
- domain/models/generate_link_request_model
- domain/models/generate_link_response_model
- domain/models/get_detail_request_model
- domain/models/get_detail_response_model
- modal_bottomsheet
- presentation/pages/bank_card_with_provider
- presentation/pages/success
- presentation/widgets/bank_card_item
- presentation/widgets/indicator_bar
- presentation/widgets/power_by_version
- presentation/widgets/sizebox_custom
- presentation/widgets/title_header