Skip to main content

Cancel payment

This operation can be used with any payment method, but only if it is in authorizationStatus=NEW.

In the case of payment method PAY_LATER, this method can also be used if authorizationStatus=AUTH_DONE and at the same time payment status=CUSTOMER_CREATION_IN_PROGRESS.

const paymentId = "b54afd37-5bb9-4080-9416-5ec450779087";
const cancelPaymentResponse = await sdk.cancelPayment(paymentId);