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
getter/setter pair
- amount ↔ double
-
The amount of money being sent to the customer.
getter/setter pair
- 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.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifierType ↔ IdentifierType
-
Type of organization receiving the transaction
getter/setter pair
- mpesa ↔ Mpesa
-
getter/setter pairoverride
-
payload
→ Map<
String, dynamic> -
no setter
- 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.
getter/setter pair
- remarks ↔ String
-
Any additional information to be associated with the transaction.
Sentence of up to 100 characters
getter/setter pair
- 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.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortCode ↔ String
-
This is the customer business number to receive the amount.
getter/setter pair
- url → String
-
no setter
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