dart_mpesa
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.
Ready Methods/APIs include
- [x] LIPA NA MPESA
- [x] STKPUSH QUERY
- [x] C2BSIMULATE
- [x] B2B
- [x] B2C
- [x] C2B
- [x] TRANSACTION STATUS
- [x] ACCOUNT BALANCE
- [x] REVERSAL
Usage
Create an instance of Mpesa, then use its methods to consume the Api
lipa na mpesa online
LIPA NA M-PESA ONLINE API also know as M-PESA express (STK Push) is a Merchant/Business initiated C2B (Customer to Business) Payment.
B2B
The Business to Business (B2B) API is used to transfer money from one business to another business.
B2B buy goods
A transfer of funds from one Organization's Working Account to another Organization's Merchant Account.
fetch token
See examples or docs for more