$possibleRejectionErrorCodes
$possibleRejectionErrorCodes : array
Wrapper class for transaction details.
$formattedTransaction : array|null
example:
{
"transactionid":"17728f8f9f82313494043bb7224b2f6c",
"posid":"#02299991",
"state":"VEVOOLDAL_VISSZAVONT",
"responsecode":"VISSZAUTASITOTTFIZETES",
"shopinformed":"true",
"startdate":"20161116235449",
"enddate":"20161117000150",
"params":{
"input":{
"backurl":"http:\/\/www.google.com",
"exchange":"HUF",
"zipcodeneeded":"false",
"narrationneeded":"false",
"mailaddressneeded":"false",
"countyneeded":"FALSE",
"nameneeded":"false",
"languagecode":"hu",
"countryneeded":"FALSE",
"amount":"100",
"settlementneeded":"false",
"streetneeded":"false",
"consumerreceiptneeded":"FALSE",
"consumerregistrationneeded":"FALSE"
},
"output":{
}
}
}
fromXml(string $xmlString) : \Clapp\OtpHu\Transaction
initialize a new Transaction instance from an xml string provided by the gateway
string | $xmlString | the xml string provided by the gateway |
transaction details instance
translateRejectionCodeToMessage(string $code) : string
translate a rejection code to a human readable string
string | $code | rejection code from the gateway |
if the $code is not found in $possibleRejectionErrorCodes
human readable rejection string