The response to the CANCELTX call is the same as the TRANSACTION response. There are additional fields that reflect the status of the CANCELTX call itself.
Field | Type | Description |
---|---|---|
REQUESTSTATUS | ascii | Possible values: • SUCCEEDED : the refund status values reflect the status of the referenced refund.• FAILED : the CANCELTX call failed. Check ERRMSG for details. |
REQUESTFAILREASON | ascii | Only returned if REQUESTSTATUS has FAILED. See REQUESTFAILREASON for possible values. |
STATUS | ascii | The outcome of the request. Possible values: • PENDING • SUCCEEDED • FAILED |
TXID | ascii | Unique transaction identifier. Allowed characters: [a-zA-Z0-9.,-_] , 20 characters maximum.In case of severe errors (e.g. authentication not possible) this will return “0”, otherwise always a valid transaction identifier is assigned. |
MERCHANTTXID | ascii | You can send the value of the merchanttxid parameter in the initial TRANSACTION request. |
FUNDSSTATUS | ascii | Funds status of the transaction. Possible values: • NOT_EXPECTED • WAITING • RECEIVED • MISSING For payment methods that don’t expect funds, this is always NOT_EXPECTED . |
ERRMSG | utf-8 | Human-readable error message. Maximum of 128 characters. |
REDIRECTURL | ascii | URL to redirect the consumer (see Redirecting the consumer). Only available in PENDING asynchronous transactions. Maximum 255 characters. |
REDIRECTSECRET | ascii | Random string used in creating hashes (see Redirecting the consumer. Maximum 64 characters. |
FAILREASON | ascii | Returned only if STATUS is FAILED . Possible values:• UNKNOWN : transaction failed for unknown reasons (also default in reporting for succeeded transactions).• INPUT_DATA : a problem occurred with the data that you passed.• USER_ABORT : the consumer aborted the payment process.• TIMEOUT : there was a timeout while waiting for the transaction result.• LOCAL_ERROR : local system error. Contact Payment Gateway support.• REMOTE_ERROR : a remote processing error occurred. If this situation persists, contact Payment Gateway support.• LOCAL_DECLINE : the Payment Gateway declined the transaction, for example, due to risk management.• REMOTE_DECLINE : a remote system declines the transaction, for example, due to failed payment process authentication.• CANCELED : the transaction was canceled on the client's request (see CANCELTX). |
CHANNEL | ascii | The channel used for the transaction (equals the input data). |
TAG | ascii | The tag within the channel used for the transaction (equals the input data). |
SUCCEEDED response
REQUESTSTATUS=SUCCEEDED
&STATUS=FAILED
&TXID=225638772
&MERCHANTTXID=1c122640%2D9fc1%2D42ae%2D9eba%2Db40832b3fdf0
&FUNDSSTATUS=NOT%5FEXPECTED
&FLAGS=
&ERRMSG=Canceled+transaction
&CHANNEL=testchannel
&TAG=dumbdummy
&FAILREASON=CANCELED
&SPECOUT%2EPAYMENTPURPOSE=2VV44I9
&RAND3171783262=38eba713f2df592ff3e7454c1d11b2b89ab18545
FAILED response
REQUESTSTATUS=FAILED
2&REQUESTFAILREASON=UNKNOWN
3&STATUS=FAILED
4&TXID=0
5&ERRMSG=Transaction+in+state+TransactionFailed
6&FAILREASON=UNKNOWN
7&RAND2714027729=f8d6f4a5e4da53630c7fd04bcd385a89470fcdab
REQUESTSTATUS=FAILED
2&REQUESTFAILREASON=UNKNOWN
3&RAND3819363686=ae44a33e44bd7cce4032b7ac7bd546714cb67e14
4&STATUS=FAILED
5&TXID=0
6&ERRMSG=Changing+specin+values+on+cancelation+is+not+allowed&FAILREASON=UNKNOWN