Skip to content

    Cancel payments

    Cancel payment

    When a customer has completed the checkout flow and accepted the payment, the specified amount has been reserved (but not charged) on your customer's payment card.

    If a customer cancels an order before the goods are shipped, you have the possibility to cancel the payment. By canceling a payment, the reserved money will be released to the customer's payment card. To cancel a payment, call the method Cancel payment as demonstrated in the following example:

    It is not possible to cancel a payment that has been already charged. In case you have already charged a payment you need to do a refund. You can read more about refunds below.

    Cancel payment

    <?php
    
    $paymentId = "<PAYMENT_ID>";
    $payload = '{

    Remember to replace the amount in the payload so that it matches your payment.

    You can subscribe to the following webhook events to track cancel requests associated with a payment:

    It is not possible to cancel a payment that has been already charged. In case you have already charged a payment you need to do a refund. You can read more about charges and refunds in the following sections.

    Was this helpful?

    What was your feeling about it?