sbp_payments 0.0.3 copy "sbp_payments: ^0.0.3" to clipboard
sbp_payments: ^0.0.3 copied to clipboard

Flutter plugin which helps to handle sbp payment links and open it with specific bank app

sbp_payments #

Flutter plugin which helps to handle sbp payment links and open it with specific bank app. Supports iOS and Android

Android widget iOS widget

Usage #

To use this plugin, add sbp_payments as a dependency in your pubspec.yaml file.

Installation #

iOS #

Add URL schemes as LSApplicationQueriesSchemes entries in your Info.plist file:

 <key>LSApplicationQueriesSchemes</key>
  <array>
    <string>bank100000000000</string>
    <string>bank100000000001</string>
    ...
    <string>bank100000000999</string>
    <string>bank100000001000</string>
  </array>

That's need for UIApplication.shared.canOpenURL method worked correctly. You can copy and paste all lines from example.

See -[UIApplication canOpenURL:] for more details.

Example #

import 'package:flutter/material.dart';
import 'package:sbp_payments/sbp_payments.dart';

final _sbpLinkExample =
      'https://qr.nspk.ru/AS100001ORTF4GAF80KPJ53K186D9A3G?type=01&bank=100000000007&crc=0C8A';

void main() => runApp(
      const MaterialApp(
        home: Material(
          child: Center(
            child: RaisedButton(
              onPressed: _showBanks,
              child: Text('Show SBP widget'),
            ),
          ),
        ),
      ),
    );

void _showBanks() async => await SbpPayments.showBanks(_sbpLinkExample);
4
likes
160
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin which helps to handle sbp payment links and open it with specific bank app

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, sbp_platform_interface

More

Packages that depend on sbp_payments