transactionReversal
suspend fun transactionReversal(transactionReversalRequest: TransactionReversalRequest): TransactionReversalResponse
Reversal - Reverses a C2B M-Pesa transaction.
Once a customer pays and there is a need to reverse the transaction, the organization will use this API to reverse the amount.
Return
A TransactionReversalResponse object containing the reversal details.
Parameters
transactionReversalRequest
The request object containing the transaction details for reversal.
Throws
DarajaException
if the request is unsuccessful.