Class Core
package |
iATS |
---|
__construct(string $agentcode, string $password, string $serverid = 'NA')
see |
\iATS\Core::setServer()
For options |
---|---|
string
iATS account agent code.
string
iATS account password.
string
Server identifier. (Defaults to 'NA')
apiCall(string $method, array $parameters) : object
throws |
---|
string
The name of the method to call.
array
Parameters to pass the API.
object
XML object or boolean.
checkMOPCurrencyRestrictions(string $serverid, string $currency, string $mop) : boolean
string
Server identifier
string
Currency
string
Method of Payment
boolean
Result of check
checkRestrictions(array $parameters, boolean $forceCurrencyCheck = FALSE) : boolean|string
array
Request parameters.
boolean
True to force a currency check even when currency or method of payment are missing.
boolean|string
FALSE if no restrictions. Message if restricted.
checkServerRestrictions(string $serverid, array $restrictedservers) : boolean
string
Server identifier
array
Restricted servers array
boolean
Result of server restricted check
getFormattedDate(integer $timestamp) : string
integer
The timestamp to convert.
string
The formatted date string.
getMOPCurrencyMatrix() : array
array
Array of Server/Currency/MOP
getSoapClient(string $endpoint, array $options = array()) : \SoapClient
string
Service endpoint
\SoapClient
Returns IATS SoapClient object
rejectMessage(integer $reject_code) : array
integer
iATS rejection code.
array
Rejection code and message as in array in the format: [ 'code' => 19, 'message' => 'Incorrect CVV2 security code', ]
setServer(string $serverid)
throws | |
---|---|
string
Server identifier ('UK' or 'NA'.)
xml2array(string $xmlstring) : array
string
An XML string to be processed.
array
Array.
na_server : string
var |
North America server url. |
---|
string
uk_server : string
var |
UK server url. |
---|
string
agentcode : string
var |
iATS account agent code. |
---|
string
password : string
var |
iATS account password. |
---|
string
serverid : string
var |
Server identifier. @see Core::setServer() |
---|
string
server : string
var |
Server url. |
---|
string
endpoint : string
var |
Service endpoint |
---|
string
params : string
var |
Requrest parameters |
---|
string
resultname : string
var |
The result name |
---|
string
format : string
var |
Format |
---|
string
restrictedservers : array
var |
Restricted servers array |
---|
array