A payment with a PENDING status due to an AUTHORIZE transaction status (due to card authorization) can be canceled before it is completed if the payment is no longer required. Sending a cancel request will update the payment's status to CANCELLED.
3DS Payments
Payments in a PENDING status due to 3DS authentication cannot be canceled. These payments are in a temporary state awaiting user authentication. The payment status will automatically update to either FRAUD VERIFIED or CANCELLED based on the outcome of the authentication process.
APMs
Certain alternative payment methods providers also support payment cancelation with a PENDING status. Please feel free to reach out to your technical account manager for more information in case you need to use it
If you need a receipt for the canceled transaction, you can retrieve it after it has been created. To do this, use the Retrieve Payment by ID endpoint and check the receipt_url
field in the payment.transaction
object.
To use this endpoint, you have to provide an X-Idempotency-Key
in your request. Check the Authentication page for more information.