Search packages, repositories and app categories

Package detailsv1.2.0

iban

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
26.2K
Likes
31
Pub points
160

Install package

flutter pub add iban

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The iban package is a Flutter/Dart library designed for validating International Bank Account Numbers (IBANs) against the official IBAN registry, with support for both standard and some unofficial formats. It provides reliable validation to ensure correct bank account number formatting across international borders. The package is lightweight and integrates seamlessly into forms requiring financial data input, offering real-time feedback during user entry. It supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Form validation in banking apps
  • International payment processing
  • User input validation for bank accounts
  • Financial data collection
  • Cross-border transaction handling
  • Automated IBAN checks

Key features

  • Validates against official IBAN registry
  • Supports unofficial IBAN formats
  • Cross-platform compatibility
  • Lightweight and easy to integrate
  • Real-time validation feedback
  • Robust error detection

Suitable for

  • Financial applications
  • Payment gateways
  • Banking platforms
  • Global e-commerce systems
  • Apps requiring international account validation

Considerations

  • May not cover all rare or region-specific IBAN formats
  • Requires updated registry data for full accuracy
  • Limited to IBAN validation, not full banking API integration
  • Not suitable for non-IBAN account types
  • Depends on external registry updates for new country codes

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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 are copied from iban.js, which is unfortunately no longer maintained.

See specifications.dart for all available countries.

Contrary to iban.js, which parses the specifications at runtime, all regular expression strings are parsed using specifications_builder.dart.

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

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.