Cancel or refund with a PSP reference
Method
Call cancelOrRefundTransactionWithPSPReference
to cancel or refund a transaction where the transaction was processed online successfully and generated a PSP reference. The response from the server indicates if the cancel or refund was received, not if it was performed.
If the request is successful, if the pspReference
of the original transaction is valid, and if the transaction was not already cancelled or refunded, the cancel or refund will always be performed. When the transactions are retrieved and their refunds are examined, each refund will have a processingState
to indicate whether a cancelOrRefund
request was sent.
Parameters
Name | Type | Required | Description |
---|---|---|---|
pspReference |
merchantReference | PSP reference of the original transaction. | |
merchantReference |
NSString | Reference for the merchant, used in reporting. | |
refundState |
ADYProcessingState | Indicates whether a cancelOrRefund request was sent. |
|
error |
NSError | Information about any errors that occurred. |
Cancel or refund with a tender reference
Method
Call cancelOrRefundTransactionWithTenderReference
to cancel or refund a transaction. This is used where the transaction was offline with the provided combination of tenderReference
and UniqueTerminalId (Model-SerialNumber). The response from the server indicates if the cancel or refund was received, not if it was performed.
If the request is successful, if the he combination of tenderReference
and UniqueTerminalId
of the original transaction is valid of the original transaction is valid, and if the transaction was not already cancelled or refunded, the cancel or refund will always be performed. When the transactions are retrieved and their refunds are examined, each refund will have a processingState
to indicate whether a cancelOrRefund
request was sent.