bysquare_dart 1.0.1 copy "bysquare_dart: ^1.0.1" to clipboard
bysquare_dart: ^1.0.1 copied to clipboard

Encode & decode PAY by square and Invoice by square QR strings - Slovak banking standard (SBA).

bysquare_dart #

Dart port of xseman/bysquare - encode and decode PAY by square and Invoice by square QR strings, the Slovak banking standard adopted by the Slovak Banking Association (SBA) in 2013.

Features #

  • PAY by square encode & decode (spec v1.0.0 - v1.2.0)
  • Invoice by square encode & decode
  • Payment types: PaymentOrder, StandingOrder, DirectDebit
  • Invoice types: Invoice, ProformaInvoice, CreditNote, DebitNote, AdvanceInvoice
  • Diacritics removal for banking app compatibility
  • Pure Dart - works in Flutter, Dart CLI, and server-side Dart

Installation #

dependencies:
  bysquare_dart: ^1.0.0

Usage #

Encode #

import 'package:bysquare_dart/bysquare.dart';

final qr = payEncode(
  PayDataModel(
    payments: [
      PaymentOrder(
        amount: 19.99,
        currencyCode: 'EUR',
        variableSymbol: '1234567890',
        bankAccounts: [
          BankAccount(
            iban: 'SK9611000000002918599669',
            bic: 'TATRSKBX',
          ),
        ],
        beneficiary: Beneficiary(name: 'Acme s.r.o.'),
      ),
    ],
  ),
);

Decode #

import 'package:bysquare_dart/bysquare.dart';

final model = payDecode(qr);
print(model.payments.first.amount); // 19.99

Credits #

Based on xseman/bysquare by Filip Seman (Apache-2.0).

License #

Apache-2.0

1
likes
160
points
32
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Encode & decode PAY by square and Invoice by square QR strings - Slovak banking standard (SBA).

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

lzma

More

Packages that depend on bysquare_dart