Checking german BIC/Account #s
C C++ Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ext/konto_check
test
.document
.gitignore
LICENSE
README.textile
Rakefile
VERSION.yml
konto_check.gemspec

README.textile

KontoCheck

Check whether a certain bic/account-no-combination can possibly be valid for a German bank.

It uses the C library konto_check (see http://sourceforge.net/projects/kontocheck/) by
Michael Plugge.

Example

An example tends to tell more than a 1000 words:

>> require "konto_check"
true

>> KontoCheck::load_bank_data("./BLZ_20100308.txt")
true

>> KontoCheck::konto_check("52001","52250030")
true

>> KontoCheck::bank_name("52250030")
"hahaa!"
(Wutt??? Doesn't work yet. Obviously)

Short ‘Documentation’

KontoCheck::konto_check(<kto>, <blz>)

check whether the given account number kto ca possibly be
a valid number of the bank with the bic blz.

KontoCheck::load_bank_data(<datafile>)

initialize the underlying C library konto_check with the bank
information from the file datafile.

Internally, this file is first transformed into a LUT file and then
read.

For the datafile, use the file ‘blz_yyyymmdd.txt’ from
http://www.bundesbank.de/zahlungsverkehr/zahlungsverkehr_bankleitzahlen_download.php
These files are updated every three months, so be sure to
replace them regularly.

KontoCheck::bank_name(<blz>)

gives the name of the bank as a string or nil
if no bank with the given bic blz exists.

License

Since the original http://www.informatik.hs-mannheim.de/konto_check/ is
licensed under LGPL, so is this module.