== BankValUK
== Unified Software (c) 2021
==SYNOPSIS
require 'rubygems' #using uppercase letters may load the file more than once which can cause 'already set constant' warnings
require 'bankval::uk'
obj = BankVal::UK.new
ans = obj.bank_val_uk('00-01-26','12345678','abcd123','12345')
==Description
This Gem controls the calling of REST web services from Unified Software's UK Bank Validation services.
It will transparently call Unified's back up servers in the unlikely event of any issues with the main servers.
The services which can be used from this Gem are:
[BankValUK]Validates UK bank sort code / account numbers. Returns transposed sort code and account number plus latest EISCD (Extended Industry Sorting Code Directory) data.
object = BankVal::UK.new
method = object.bank_val_uk(sortcode,accountno,userid,pin)
==Including the Gem
To allow the usage of this gem you must have RubyGems installed. To check if you have,
open a command prompt (win) or console window (*nix) and type 'gem'. If RubyGems is installed
you will see a help message. If it isn't a command unrecognised message will appear.
To install RubyGems please refer to :
http://docs.rubygems.org/read/chapter/3
Once Rubygems is installed you can install the BankValUK gem from Rubygems.org by either;
*searching for BankValUK from within your IDE (e.g. in netbeans tool>RubyGems)
*opening a command prompt (win) or a console window (*nix) and typing 'gem install BankValInt'
Once the BankValUK gem is installed on your system it can be included in your code by adding the following two lines:
require 'rubygems'
require 'bankval'
==Calling the services
To call the services simply create an instance of the relevant class (as shown in the description above) and call
the exposed method (again as shown above)
==Parameters
The required parameters for the services are as follows:
-
Sort Code:: the Sort code to be validated
-
Account Number:: the account number to be validated
-
UserID:: available from www.unifiedsoftware.co.uk
-
PIN:: available from www.unifiedsoftware.co.uk
The parameters must be passed in the order shown.
==Method Returns
The methods will return the web services response as a string formatted in json
==BankValUK Ruby Gem
==Unified Software 2021
==www.unifiedsoftware.co.uk