Skip to content

cshirley/bank_account_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circle CI Coverage Status

BankAccountChecker

Simple API wrapper for http://www.bankaccountchecker.com

Installation

Add this line to your application's Gemfile:

gem 'bank_account_checker', git: 'https://github.com/cshirley/bank_account_checker.git'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bank_account_checker

Usage

Get Bank Account Details:

client = BankAccountChecker::Client.new("user_name", "password")

To Check a bank account:

json_response = client.get_bank_account("557030", "12345678")

    {"resultCode"=>"01",
     "resultDescription"=>"Sortcode and Bank Account are valid",
     "accountProperties" => { "institution"=>"NATIONAL WESTMINSTER BANK PLC",
                              "branch"=>"CROYDON",
                              "fast_payment"=>"true",
                              "bacs_credit"=>"true",
                              "bacs_direct_debit"=>"true",
                              "chaps"=>"true",
                              "cheque"=>"true"}}

Exceptions

Authentication Failure:

BankAccountChecker::AuthenticationError

Invalid Bank Account:

BankAccountChecker::InvalidBankAccountError

Server Generated API Error:

BankAccountChecker::ApiException

Contributing

  1. Fork it ( https://github.com/cshirley/bank_account_checker/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages