b24_direct_debit_sdk 1.0.0 copy "b24_direct_debit_sdk: ^1.0.0" to clipboard
b24_direct_debit_sdk: ^1.0.0 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
copied to clipboard

Requirement #

    dart_sdk:^3.5.x
    flutter_sdk:>=1.17.0
copied to clipboard

Configuration #

Ios #

Add configuration scheme in info.plist

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>https</string>
  <string>http</string>
</array>
copied to clipboard

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>
copied to clipboard

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
    );
copied to clipboard

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")),
      ),
    );
  }
}


copied to clipboard
4
likes
130
points
96
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

The Bill24 SDK simplifies setting up direct debit payments with banks. With this tool, consumers can subscribe for automatic payments.

Repository

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, flutter_localizations, fluttertoast, go_router, google_fonts, http, intl, provider, socket_io_client, universal_html, universal_platform, url_launcher

More

Packages that depend on b24_direct_debit_sdk