New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

BankValUK

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

BankValUK

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

== 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:

  1. Sort Code:: the Sort code to be validated

  2. Account Number:: the account number to be validated

  3. UserID:: available from www.unifiedsoftware.co.uk

  4. 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

FAQs

Package last updated on 15 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc