cancelPaymentAsync

Asynchronously cancels an existing payment transaction. This sets the payment status to CANCELLED and aborts the transfer from the customer's wallet to the merchant.

Parameters

request

The request object containing necessary information to cancel the payment.

cancellationSignal

A signal for canceling the asynchronous operation (nullable).

callback

The callback to be invoked upon completion or error.