Class ReportLink
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
getACHEFTApprovedDateRangeCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getACHEFTApprovedSpecificDateCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getACHEFTApprovedSpecificDateXML(array $parameters) : mixed
array
An 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.
mixed
Report array or API error.
getACHEFTBankReconciliationReportCSV(array $parameters) : mixed
Provides a report of the bank balance of ACHEFT transactions.
array
An 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.
mixed
Report CSV (string) or API error.
getACHEFTRejectDateRangeCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getACHEFTRejectSpecificDateCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getACHEFTRejectSpecificDateXML(array $parameters) : mixed
endcode |
---|
array
An 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.
mixed
Report array or API error.
getACHEFTReturnDateRangeCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getACHEFTReturnSpecificDateCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getACHEFTReturnSpecificDateXML(array $parameters) : mixed
array
An 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.
mixed
Report array or API error.
getCreditCardApprovedDateRangeCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getCreditCardApprovedSpecificDateCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getCreditCardApprovedSpecificDateXML(array $parameters) : mixed
array
An 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.
mixed
Report array or API error.
getCreditCardBankReconciliationReportCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getCreditCardRejectDateRangeCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getCreditCardRejectSpecificDateCSV(array $parameters) : mixed
array
An 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.
mixed
Report CSV (string) or API error.
getCreditCardRejectSpecificDateXML(array $parameters) : mixed
array
An 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.
mixed
Report array or API error.
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', ]
responseHandler(object $response, string $result, string $format) : mixed
object
SOAP response
string
Result string
string
Output format. 'AR' will return array(), 'CSV' will return a comma delimited data string with headers.
mixed
Response
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