reversalTransaction method
Reverses a B2B, B2C or C2B M-Pesa transaction.
transactionID
This is the Mpesa Transaction ID of the transaction which you wish to reverse.
amount
The amount of money being sent to the customer.
occassion
Any additional information to be associated with the transaction. Sentence of upto 100 characters
remarks
Comments that are sent along with the transaction. Sentence of up to 100 characters
queueTimeOutURL
This is the URL to be specified in your request that will be used by API Proxy to send notification incase the payment request is timed out while awaiting processing in the queue.
resultURL
This is the URL to be specified in your request that will be used by M-PESA to send notification upon processing of the payment request.
Implementation
Future<MpesaResponse> reversalTransaction({
required String transactionID,
required double amount,
required String remarks,
required String occassion,
required String queueTimeOutURL,
required String resultURL,
}) {
var _revers = MpesaReversal(
this,
transactionID: transactionID,
amount: amount,
remarks: remarks,
occassion: occassion,
queueTimeOutURL: queueTimeOutURL,
resultURL: resultURL,
);
return _revers.process();
}