0.01
No release in over 3 years
Low commit activity in last 3 years
Wrapper for the Iban.com API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.10
~> 10.0
~> 3.1

Runtime

 Project Readme

Iban.com wrapper

Wrapper for the iban.com validation api (v2)

Documentation

See the API docs.

Requirements

  • Ruby 2.2+.

Bundler

If you are installing via bundler, you should be sure to use the https rubygems source in your Gemfile, as any gems fetched over http could potentially be compromised in transit and alter the code of gems fetched securely over https:

source 'https://rubygems.org'

gem 'iban_client'

Configuration

IbanClient.configure do |config|
  config.api_key = 'you api key'
  config.timeout = 2
end

Usage

iban = IbanClient::Iban.new('FR7616798000010000005663951')
iban.valid? # => true

iban.bic # => "TRZOFR21"
iban.bank # => "TREEZOR SAS"
iban.address # => "150 RUE GALLIENI"
iban.city # => "BOULOGNE BILLANCOURT CEDEX"
iban.state # => nil
iban.zip # => "92641"
iban.country # => "FRANCE"
iban.country_iso # => "FR"
iban.bic # => "TRZOFR21"
iban.account # => "00000056639"

Development

Run all tests:

bundle exec rspec