Link Money Pay by Bank Flutter SDK

Installation

Add pay_by_bank as a dependency by running the following command:

flutter pub add pay_by_bank

Use

Link Money’s pay_by_bank SDK is a native full screen takeover which will be presented on top of your Flutter application.

import 'package:pay_by_bank/link_account.dart';

LinkAccount().startLinkingProcess(
    LinkEnvironment.production,
    'sessionKey',
    (customerId) {
        print('Customer Id is $customerId');
    },
    (error) {
        print(error);
    },
);

For Android please ensure that your main activity inherits from FlutterFragmentActivity.

import io.flutter.embedding.android.FlutterFragmentActivity

class MainActivity : FlutterFragmentActivity() { }

Further Reading