All BankVal web services are available on both the main and backup servers at our primary data centre. This configuration is mirrored at our secondary data centre. The two data centres are geographically independent. Using this configuration, the BankVal web service has been available continuously since launch in 2003.
In general:
1 Cardvalidate2 - REST
Please note that cardvalidate2 does NOT check that the card actually exists, that there are sufficient funds available, that the card has been reported as stolen, etc.
where:
If card number is valid:-
Sample valid response in xml format :-
<cardvalidate2>
</cardvalidate2>
Sample valid response in json format :-
Sample valid response in csv format :-
If sort code and account number are not valid or if an error occurs:-
Error messages :-
INVALID - Modulus Check Failed - The card number failed the modulus check / was not in a recognisable card number format.
INVALID - Result Format - format parameter was not ‘xml’, ‘json’ or ‘csv’.
ERROR - Invalid User ID/PIN - The User ID or PIN has not been recognised.
ERROR - UserID Expired - Trial user ID has expired.
ERROR - Insecure Connection - An attempt was made to access BankVal's cardvalidate2 method using insecure HTTP protocol instead of HTTPS.
2 CardValidate2 - SOAP
There are two main ways of implementing SOAP, Document Literal and RPC. For help choosing the best solution for your implementation, please contact support@unifiedsoftware.co.uk.
2.1 CardValidate2 - SOAP Document Literal
The WSDL file on the primary data centre is at https://www.unifiedservices.co.uk/services/bankvaluk/cardvalidate2.php?wsdl
The WSDL file on the backup data centre is at https://www.unifiedsoftware.co.uk/services/bankvaluk/cardvalidate2.php?wsdl
Parameters |
Description |
|---|---|
userid |
BankVal UK User ID. |
pin |
5 digit PIN. |
cardnumber |
Card Number to be validated. |
Field |
Description |
|---|---|
result |
Result string contains on of the following messages:- |
country |
Country of issue. |
countrycode |
Country code of issue. |
type |
Debit / credit. |
finame |
Name of card issuer. |
2.2 Cardvalidate2 - SOAP RPC
Please note that cardvalidate2 does NOT check that the card actually exists, that there are sufficient funds available, that the card has been reported as stolen, etc.
ReturnMessage = cardvalidate2(QueryString)
where:-
QueryString = userID|PIN|card number
All possible ReturnMessage values are shown below
Note the delimiters "|" - these are included in all responses from cardvalidate2, even if the individual fields are not populated.
VALID - followed by card information in the following format:
INVALID - Modulus Check Failed|||||- The card number failed the modulus check / was not in a recognisable card number format.
ERROR - Invalid User ID/PIN||||| - The User ID or PIN has not been recognised.
ERROR - UserID Expired||||| - Trial user ID has expired
ERROR - Insecure Connection||||| - An attempt was made to access BankVal's cardvalidate2 method using the insecure HTTP protocol instead of HTTPS
The WSDL file on the primary data centre is at https://www.unifiedservices.co.uk/bankvaluk3.wsdl
The WSDL file on the backup data centre is at https://www.unifiedsoftware.co.uk/bankvaluk3.wsdl
Social Media