Project

valiban

0.0
No commit activity in last 3 years
No release in over 3 years
A gem to transform an IBAN number into europen account- and banknumbers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.13.0
 Project Readme

valiban

valiban converts IBAN code into bank account numbers and bank code numbers. In the future, it will also support validation of IBAN codes.

Credit

Some of the basic ideas of this gem were taken from iulianu's iban-tools You'll find the source code on Github.

INSTALLATION

gem install valiban

USAGE

require 'valiban'

Get the bank code number

Valiban::IBAN.get_bank_code_number("AT754805700005040015") => "48057"

Get the bank account number

Valiban::IBAN.get_bank_account_number("AT754805700005040015") => "00005040015"

Get the country code

Valiban::IBAN.get_country_code("AT754805700005040015") => "AT"

Future

  • I also want to add validations for IBAN codes in the future.
  • Add more country rules.
  • Maybe I extend this library to deal with BIC/SWIFT codes as well