Skip to content

xonaman/flutter_iban_to_bic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Determines the SWIFT BIC of an IBAN. Currently supports IBANs from the following countries: Austria, Belgium, Germany, Spain, France, Lithuania, Luxembourg, Netherlands. Inspired by sigalor/iban-to-bic.

Getting started

Depend on it

Run this command:

flutter pub add iban_to_bic

Import it

Now in your Dart code, you can use:

import 'package:iban_to_bic/iban_to_bic.dart';

Example usage

import 'package:flutter/material.dart';
import 'package:iban_to_bic/iban_to_bic.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final Bic bic = ibanToBic('DE64 5001 0517 9423 8144 35');
  print('BIC: ${bic.value}');                // result: INGDDEFFXXX
  print('Bank name: ${bic.bankShortName}');  // result: ING-DiBa
  print('Postcode: ${bic.bankPostcode}');    // result: 60628
  print('Location: ${bic.bankLocation}');    // result: Frankfurt am Main
}

About

Determines the SWIFT BIC of an IBAN.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages