Skip to main content

iban 1.2.0 copy "iban: ^1.2.0" to clipboard
iban: ^1.2.0 copied to clipboard

A validation library for IBANs included in the official registry. Also supports some unofficial ones.

iban #

Validate IBANs

Build Status

Usage #

A simple usage example:

import 'package:iban/iban.dart';

void main() {
  final iban = 'at61 1904 3002 3457 3201';

  if (isValid(iban)) {
    print('$iban is a valid iban');
  } else {
    print('$iban is not a valid iban');
  }

  if (isValid(iban, sanitize: false)) {
    print('$iban without sanitization is a valid iban.');
  } else {
    print('$iban without sanitization is not a valid iban.');
  }

  print('Convert the IBAN into a standard format: ${electronicFormat(iban)}');
  print('To display an IBAN to a user we have: ${toPrintFormat(iban)}');
}

Iban specifications #

The iban specifications were originally copied from iban.js (no longer maintained) and are now synced with ibankit-js.

See specifications.dart for all available countries.

Please open an issue if you know how to build the iban for another country.

31
likes
160
points
26.1k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A validation library for IBANs included in the official registry. Also supports some unofficial ones.

Repository (GitHub)
View/report issues

Topics

#iban #banking #validation

License

BSD-3-Clause (license)

Dependencies

mod97

More

Packages that depend on iban