b24_direct_debit_sdk 1.0.0-beta.3 copy "b24_direct_debit_sdk: ^1.0.0-beta.3" to clipboard
b24_direct_debit_sdk: ^1.0.0-beta.3 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")),
      ),
    );
  }
}


4
likes
0
points
56
downloads

Publisher

unverified uploader

Weekly Downloads

A SDK use to subscribe direct debit with banks.

License

unknown (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