dart_mpesa library Null safety
This library contains methods that make it easy to consume Mpesa Api. It's multi-platform, and supports CLI, server, mobile, desktop, and the browser.
- 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.
- B2C API is an API used to make payments from a Business to Customers (Pay Outs). Also known as Bulk Disbursements. B2C API is used in several scenarios by businesses that require to either make Salary Payments, Cashback payments, Promotional Payments(e.g. betting winning payouts), winnings, financial institutions withdrawal of funds, loan disbursements etc.
- Make payment requests from Client to Business (C2B). Simulate is available on sandbox only
- mpesaAccountBalanceUrL → const String
- mpesaAccountBalanceUrLTest → const String
- mpesaBbUrL → const String
- mpesaBbUrLTest → const String
- mpesaBcUrL → const String
- mpesaBcUrLTest → const String
- mpesaCbRegisterUrlUrL → const String
- mpesaCbRegisterUrlUrLTest → const String
- mpesacbSimulationUrLTest → const String
- mpesaLipanaMpesaOnlineUrL → const String
- mpesaLipanaMpesaOnlineUrLTest → const String
- mpesaReversalUrL → const String
- mpesaReversalUrLTest → const String
- mpesaStkpushQueryUrL → const String
- mpesaStkpushQueryUrLTest → const String
- mpesaTokenUrl → const String
- mpesaTokenUrlTest → const String
- mpesaTransactionStatusUrL → const String
- mpesaTransactionStatusUrLTest → const String
- BbCommandId.BusinessPayBill This is a transfer of funds from one Organization's Working Account to another Organization's Utility Account. BbCommandId.BusinessBuyGoods A transfer of funds from one Organization's Working Account to another Organization's Merchant Account. BbCommandId.DisburseFundsToBusiness A transfer of funds from one Organization's Utility Account to another Organization's Working Account. BbCommandId.BusinessToBusinessTransfer A transfer of funds from one Organization's Working Account to another Organization's Working Account. BbCommandId.MerchantToMerchantTransfer A transfer of funds from one Organization's Merchant Account to another Organization's Merchant Account.
- BcCommandId.SalaryPayment This supports sending money to both registered BcCommandId.BusinessPayment BusinessPayment: This is a normal business to customer payment, supports only M-PESA registered customers. PromotionPayment PromotionPayment: This is a promotional payment to customers. The M-PESA notification message is a congratulatory message. Supports only M-PESA registered customers.
- CbCommandID.CustomerPayBillOnline This is used for Pay Bills shortcodes. CbCommandID.CustomerBuyGoodsOnline This is used for Buy Goods shortcodes.