cancel Payment
abstract suspend fun cancelPayment(request: WalletCheckoutPaymentCancel): WalletCheckoutPaymentResponse
Cancels an existing payment transaction. This sets the payment status to CANCELLED and aborts the transfer from the customer's wallet to the merchant.
Return
A WalletCheckoutPaymentResponse object containing the updated details of the payment.
Parameters
request
The request object containing necessary information to cancel the payment.