Class Core
| package |
iATS |
|---|
__construct(string $agentcode, string $password, string $serverid = 'NA')
| see |
\iATS\Core::setServer()
For options |
|---|---|
stringiATS account agent code.
stringiATS account password.
stringServer identifier. (Defaults to 'NA')
apiCall(string $method, array $parameters) : object
| throws |
|---|
stringThe name of the method to call.
arrayParameters to pass the API.
objectXML object or boolean.
checkMOPCurrencyRestrictions(string $serverid, string $currency, string $mop) : boolean
stringServer identifier
stringCurrency
stringMethod of Payment
booleanResult of check
checkRestrictions(array $parameters, boolean $forceCurrencyCheck = FALSE) : boolean|string
arrayRequest parameters.
booleanTrue to force a currency check even when currency or method of payment are missing.
boolean|stringFALSE if no restrictions. Message if restricted.
checkServerRestrictions(string $serverid, array $restrictedservers) : boolean
stringServer identifier
arrayRestricted servers array
booleanResult of server restricted check
getFormattedDate(integer $timestamp) : string
integerThe timestamp to convert.
stringThe formatted date string.
getMOPCurrencyMatrix() : array
arrayArray of Server/Currency/MOP
getSoapClient(string $endpoint, array $options = array()) : \SoapClient
stringService endpoint
\SoapClientReturns IATS SoapClient object
rejectMessage(integer $reject_code) : array
integeriATS rejection code.
arrayRejection code and message as in array in the format: [ 'code' => 19, 'message' => 'Incorrect CVV2 security code', ]
setServer(string $serverid)
| throws | |
|---|---|
stringServer identifier ('UK' or 'NA'.)
xml2array(string $xmlstring) : array
stringAn XML string to be processed.
arrayArray.
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