Cancel in Customer Area
You can also cancel payments in your Customer Area. For more information, refer to Manage payments. For some payment methods, the payment is completed in two steps:- Authorisation – The payment details of the shopper are verified, and the funds are reserved.
- Capture – The reserved funds are transferred from the shopper to your account.
/cancelOrRefund endpoint instead.
In your call to the /cancel endpoint, you need to specify the pspReference of the original payment. If you do not have this reference, for example because of a timeout error, you can use our technical cancel functionality.
Cancel a payment
Make a POST request to the /cancel endpoint, specifying:merchantAccount: The name of your merchant account that is used to process the payment.originalReference: ThepspReferenceof the original payment request. This is included in the response to your payment request, and in the AUTHORISATION webhook.reference: Optionally, you can specify your own reference for this /cancel request.
/cancel response containing:
response: [cancel-received]pspReference: The PSP reference associated with this/cancelrequest. This is different from the PSP reference associated with the original payment request.
CANCELLATION webhook
You receive the outcome of the cancel request asynchronously, in a webhook that includes :-
eventCode: CANCELLATION. -
originalReference: The PSP reference of the authorization. -
pspReference: The same as thepspReferencein the /payments/{paymentPspReference}/cancels response. -
success: Indicates whether the cancel request was successful. Possible values:- true: The cancel request was successful.
- false: The cancel request failed. The webhook event includes a
reasonfield with a short description of the problem. Review the reason, fix the issue if possible, and resubmit the cancel request.
- success: true
- success: false