Skip to content
pubscout

emvqrcode

1.0.5, released 4 years ago by laoitdev.com

Encode and decode EMVCO QR codes in Dart

WASM-ready
$ flutter pub add emvqrcode
Source repository

What it does

This package provides classes to build, parse, and verify EMVCO QR payloads. It supports both MPM and CPM formats and includes CRC validation.

AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to generate an EMVQR for a merchant or payment terminal
  • You need to decode an EMVQR received from a customer
  • You need to verify the integrity of an EMVQR string

Skip it when

  • You only need to display or scan generic QR codes
  • You require a UI widget for QR code rendering

Strengths

  • Pure Dart, no native dependencies
  • Supports both MPM and CPM EMV formats
  • Includes CRC verification
  • Well documented examples

Weaknesses

  • No UI components for rendering QR codes
  • Limited to EMVCO specifications only

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2

Add dependency in pubspec, no additional permissions or build steps

```dart
import 'package:emvqrcode/emvqrcode.dart';

final emv = EMVQR();
emv.setPayloadFormatIndicator("00");
emv.setPointOfInitiationMethod("12");
// add merchant account info, additional data, etc.
final encoded = EMVMPM.encode(emv);
print(encoded); // prints EMVQR string
```

Alternatives

Packages that do the same job and could replace emvqrcode.

  • asn1lib

    Encodes and decodes ASN.1 objects using BER byte encoding in Dart.

  • csv_plus

    Fast, zero-dependency CSV parser, encoder, streamer, and query engine for Dart.

  • standard_message_codec

    Binary codec for efficient encoding/decoding of Dart objects without a schema.

  • qs_dart

    A query string encoding and decoding library for Dart ported from JavaScript's qs.

Works with

Packages commonly used together with emvqrcode: ones it builds on, ones built on it, and its own family.