b2bPaybillTransaction method

Future<MpesaResponse> b2bPaybillTransaction({
  1. required String shortCode,
  2. required double amount,
  3. required String remarks,
  4. required String accountReference,
  5. required String queueTimeOutURL,
  6. required String resultURL,
})

This is a transfer of funds from one Organization's Working Account to another Organization's Utility Account. shortCode This is the customer business number to receive the amount. amount The amount of money being sent to the customer. accountReference 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> b2bPaybillTransaction({
  required String shortCode,
  required double amount,
  required String remarks,
  required String accountReference,
  required String queueTimeOutURL,
  required String resultURL,
}) {
  var _bc = MpesaB2B.paybill(
    this,
    shortCode: shortCode,
    amount: amount,
    remarks: remarks,
    accountReference: accountReference,
    queueTimeOutURL: queueTimeOutURL,
    resultURL: resultURL,
  );

  return _bc.process();
}