Simple API wrapper for http://www.bankaccountchecker.com
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
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"}}
Authentication Failure:
BankAccountChecker::AuthenticationError
Invalid Bank Account:
BankAccountChecker::InvalidBankAccountError
Server Generated API Error:
BankAccountChecker::ApiException
- Fork it ( https://github.com/cshirley/bank_account_checker/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request