Class ReportLink
| 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
getACHEFTApprovedDateRangeCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'fromDate' => '2014-07-23T00:00:00+00:00' // The earliest date to gather report data for. 'toDate' => '2024-07-23T23:59:59+00:00' // The latest date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address. 'startIndex' => '0' // Optional. 'endIndex' => '1' // Optional.
mixedReport CSV (string) or API error.
getACHEFTApprovedSpecificDateCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport CSV (string) or API error.
getACHEFTApprovedSpecificDateXML(array $parameters) : mixed
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport array or API error.
getACHEFTBankReconciliationReportCSV(array $parameters) : mixed
Provides a report of the bank balance of ACHEFT transactions.
arrayAn associative array with the following possible values. 'fromDate' => '2014-07-23T00:00:00+00:00' // The earliest date to gather report data for. 'toDate' => '2024-07-23T23:59:59+00:00' // The latest date to gather report data for. 'currency' => 'USD' // The currency to represent financial data as. // North America options: CAD, USD // UK options: USD, EUR, GBP, IEE, CHF, HKD, JPY, SGD, MXN 'summaryOnly' => FALSE // True when a summarized report is required. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport CSV (string) or API error.
getACHEFTRejectDateRangeCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'fromDate' => '2014-07-23T00:00:00+00:00' // The earliest date to gather report data for. 'toDate' => '2024-07-23T23:59:59+00:00' // The latest date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address. 'startIndex' => '0' // Optional. 'endIndex' => '1' // Optional.
mixedReport CSV (string) or API error.
getACHEFTRejectSpecificDateCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport CSV (string) or API error.
getACHEFTRejectSpecificDateXML(array $parameters) : mixed
| endcode |
|---|
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport array or API error.
getACHEFTReturnDateRangeCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'fromDate' => '2014-07-23T00:00:00+00:00' // The earliest date to gather report data for. 'toDate' => '2024-07-23T23:59:59+00:00' // The latest date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport CSV (string) or API error.
getACHEFTReturnSpecificDateCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport CSV (string) or API error.
getACHEFTReturnSpecificDateXML(array $parameters) : mixed
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport array or API error.
getCreditCardApprovedDateRangeCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'fromDate' => '2014-07-23T00:00:00+00:00' // The earliest date to gather report data for. 'toDate' => '2024-07-23T23:59:59+00:00' // The latest date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address. 'startIndex' => '0' // Optional. 'endIndex' => '1' // Optional.
mixedReport CSV (string) or API error.
getCreditCardApprovedSpecificDateCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport CSV (string) or API error.
getCreditCardApprovedSpecificDateXML(array $parameters) : mixed
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport array or API error.
getCreditCardBankReconciliationReportCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'fromDate' => '2014-07-23T00:00:00+00:00' // The earliest date to gather report data for. 'toDate' => '2024-07-23T23:59:59+00:00' // The latest date to gather report data for. 'currency' => 'USD' // The currency to represent financial data as. // North America options: CAD, USD // UK options: USD, EUR, GBP, IEE, CHF, HKD, JPY, SGD, MXN 'summaryOnly' => FALSE // True when a summerized report is required. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport CSV (string) or API error.
getCreditCardRejectDateRangeCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'fromDate' => '2014-07-23T00:00:00+00:00' // The earliest date to gather report data for. 'toDate' => '2024-07-23T23:59:59+00:00' // The latest date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address. 'startIndex' => '0' // Optional. 8 'endIndex' => '1' // Optional.
mixedReport CSV (string) or API error.
getCreditCardRejectSpecificDateCSV(array $parameters) : mixed
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport CSV (string) or API error.
getCreditCardRejectSpecificDateXML(array $parameters) : mixed
arrayAn associative array with the following possible values. 'date' => '2014-07-23T00:00:00+00:00' // The date to gather report data for. 'customerIPAddress' => '' // Optional. The client's IP address.
mixedReport array or API error.
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', ]
responseHandler(object $response, string $result, string $format) : mixed
objectSOAP response
stringResult string
stringOutput format. 'AR' will return array(), 'CSV' will return a comma delimited data string with headers.
mixedResponse
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