Introduction
KiPay is an API for M-Pesa STK Push collections that settle directly to your account.
What KiPay is
KiPay gives you OAuth credentials, an STK Push endpoint, and a callback to your server. Name the till, paybill or bank account you want to collect into, and start collecting. Requests, responses and callbacks follow the standard M-Pesa STK Push format, so an existing STK Push client usually needs only a new base URL and credentials.
How it works
- Create KiPay credentials (a consumer key and secret) in the dashboard.
- Register the destination you want to collect into and get it verified.
- Exchange your credentials for a bearer token at /oauth/v1/generate.
- Send an STK Push. The customer approves on their phone.
- KiPay posts the result to your CallBackURL in the standard stkCallback format.
Base URL
Gateway endpoints live at the root of the KiPay host.
Base URL
https://api.kipay.co.keCollections only
KiPay is a collections gateway. Each collection settles directly to the destination you name, and KiPay never holds your funds.