- Cancel the payment – in case it has not yet been captured.
- Refund the payment – in case it has already been captured.
- Check if the payment has been captured.
- If not captured yet, make a /payments/{paymentPspReference}/cancels call. If already captured, make a /payments/{paymentPspReference}/refunds call.
Cancel or refund a payment
To issue a cancel or refund, make a request to the /cancelOrRefund endpoint. You need to specify:-
merchantAccount: The name of your merchant account that is used to process the payment. -
originalReference: The originalpspReferenceof the payment that you want to cancel or refund. This reference is returned in the response to your payment request, and in the AUTHORISATION webhook event. -
reference: Optional Specifies a unique identifier for payment modification. Thereferencefield is useful to tag a partial cancel or refund for future reconciliation.
/cancelOrRefund response containing:
pspReference: The PSP reference associated with this/cancelOrRefundrequest.
CANCEL OR REFUND webhook
To know whether your request to cancel or refund the payment was successful, you need to receive CANCEL_OR_REFUND webhooks. If you have enabled CANCEL_OR_REFUND webhooks, we will send you a webhook event once we have processed your request to cancel or refund the payment. This event contains:
Example of a webhook message with the CANCEL_OR_REFUND event code