Skip to main content
You can cancel a payment before you capture it, in the following scenario: if the payment was made with a payment method that allows you to capture it separately from authorization. When you cancel the payment, the financial institution releases the funds back to the shopper’s bank account.

Requirements

Ways to cancel a payment

After you determine that a payment has not been captured, you can cancel it in the following using one of the following:

Cancel a payment using the Customer Area

To cancel a payment in your Customer Area:
  1. Go to Transactions > Payments.
  2. Select the PSP reference of the payment that you want to cancel.
    This opens the Payment details page.
  3. Select Manage payment > Cancel payment. The Cancel payment button is available only if the payment has not been captured.
  4. Enter the confirmation code.
  5. Select Cancel payment.

Cancel a payment using the Checkout API

You can cancel a payment with the following information:

Cancel with PSP reference

To cancel a payment that has been authorized but not captured yet:
  1. Get the PSP reference of the authorized payment you want to cancel. You can get it from your transaction list in Customer Area or the AUTHORISATION webhook for the payment.
  2. Make a /payments/{paymentPspReference}/cancels request including the following: If you do not know if the payment has been captured, use the /payments/{paymentPspReference}/reversals endpoint instead. Example request to cancel a payment with a PSP reference

    curl

    Java

    PHP

    C#

    NodeJS (JavaScript)

    Go

    Python

    Ruby

    NodeJS (TypeScript)

    The response includes the following: Example response to cancel a payment with a PSP reference
  3. Get the outcome of the cancellation request in the CANCELLATION webhook.

Cancel with your reference

Canceling a payment using your reference is possible up to 24 hours after authorization. We recommend that you only cancel using the reference if you generate a unique references for each payment request and do not have the pspReference available.
  1. Make a /cancels request including the following: Example request to cancel a payment with your reference for the original payment
    The response includes the following: Example response to cancel a payment with your reference for the original payment
  2. Get the outcome of the cancellation request in the TECHNICAL_CANCEL webhook.

Webhooks for cancellations

The webhook that you get depends on if you made the cancel request with the PSP reference or with your own reference.

CANCELLATION webhook

If you made the cancel request with the PSP reference, you get the outcome of the cancel request in the CANCELLATION webhook. It contains the following:
  • eventCode: CANCELLATION.
  • originalReference: the PSP reference for the payment that you requested to cancel.
  • pspReference: the PSP reference for the cancel request. same as the pspReference in 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 reason field with a short description of the problem. Review the reason, fix the issue if possible, and resubmit the cancel request.
Example CANCELLATION webhook for a successful cancellation