MpesaB2B class

The Business to Business (B2B) API is used to transfer money from one business to another business. This API enables the business to pay other businesses.

Implemented types

Constructors

MpesaB2B(Mpesa mpesa, {required String shortCode, required IdentifierType identifierType, required double amount, required String remarks, required BbCommandId commandID, String? accountReference, required String queueTimeOutURL, required String resultURL})
MpesaB2B.buyGoods(Mpesa mpesa, {required String shortCode, required double amount, required String remarks, required String queueTimeOutURL, required String resultURL})
MpesaB2B.paybill(Mpesa mpesa, {required String shortCode, required double amount, required String remarks, required String? accountReference, required String queueTimeOutURL, required String resultURL})

Properties

accountReference String?
Any additional information to be associated with the transaction. Sentence of upto 100 characters
read / write
amount double
The amount of money being sent to the customer.
read / write
commandID BbCommandId
This is a unique command that specifies B2B transaction type. Business Pay Bill: This is a transfer of funds from one Organization's Working Account to another Organization's Utility Account. Business Buy Goods: A transfer of funds from one Organization's Working Account to another Organization's Merchant Account. Disburse Funds To Business: A transfer of funds from one Organization's Utility Account to another Organization's Working Account. Business To Business Transfer: A transfer of funds from one Organization's Working Account to another Organization's Working Account. Merchant To Merchant Transfer: A transfer of funds from one Organization's Merchant Account to another Organization's Merchant Account.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
identifierType IdentifierType
Type of organization receiving the transaction
read / write
mpesa Mpesa
read / writeoverride
payload Map<String, dynamic>
read-only
queueTimeOutURL String
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.
read / write
remarks String
Any additional information to be associated with the transaction. Sentence of up to 100 characters
read / write
resultURL String
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.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shortCode String
This is the customer business number to receive the amount.
read / write
url String
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process() Future<MpesaResponse>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited