upn_qr 0.0.5 copy "upn_qr: ^0.0.5" to clipboard
upn_qr: ^0.0.5 copied to clipboard

Working with UPN QR code content (for Slovenia). Parse code data.

example/main.dart

// ignore_for_file: avoid_print

import 'package:upn_qr/upn_qr.dart';

void main() {
  const qrCodeString = '''
UPNQR




Janez Novak
Dunajska 1
1000 Ljubljana
00000008105


COST
Plačilo obveznosti 10/2016

SI56051008010486080
SI0598765432100
Novo podjetje d.o.o.
Lepa cesta 15
3698 Loški Potok
183
''';

  final data = UpnQRParser.parseString(qrCodeString);
  final amount = int.parse(data.amount) / 100;

  print('Payment to:\n'
      '${data.recipientName}\n'
      'IBAN: ${data.recipientIban}\n'
      'Amount: $amount EUR');

  // Payment to:
  // Novo podjetje d.o.o.
  // IBAN: SI56051008010486080
  // Amount: 81.05 EUR
}
1
likes
160
points
52
downloads

Publisher

verified publisherorangedog.net

Weekly Downloads

Working with UPN QR code content (for Slovenia). Parse code data.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

equatable

More

Packages that depend on upn_qr