b24_direct_debit_sdk 1.0.0-beta.4 copy "b24_direct_debit_sdk: ^1.0.0-beta.4" to clipboard
b24_direct_debit_sdk: ^1.0.0-beta.4 copied to clipboard

A SDK use to subscribe direct debit with banks.

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>

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: () {
              B24DirectDebitSdk.initSdk(
                context: context,
                subscriptionNo: '879839883',
                refererKey: '123X',
                isDarkMode: false,
                language: 'km',
                isProduction: false,
              );
            },
            child: const Text("Init SDK")),
      ),
    );
  }
}