KENYAN M-PESA PAYMENT API

LeeTec M-Pesa API for Kenyan businesses

Collect payments with Lipa na M-Pesa STK Push, route funds directly to your configured Till, PayBill, or Bank, and follow transaction status from one secure workspace.

Use the LeeTec Engine REST API to connect your checkout to Safaricom M-PESA. Payment status is recorded by LeeTec; merchant webhooks are optional notifications for teams that want automatic server-to-server updates.

Read the API documentation · Create a LeeTec workspace

Collect M-Pesa payments with STK Push

Send an authenticated payment request with a Kenyan phone number, an amount in KES, and a unique order reference. The customer approves the prompt on their phone, while your integration checks the final status before fulfilling the order.

Route collections to Till, PayBill, or Bank

Configure an active payout method in the LeeTec workspace. New payment requests use that destination, so collections are routed directly to the selected Till, PayBill, or Bank.

Track payment status and history

Check a collection by its stable request ID or review transaction history in the workspace. Use optional signed webhooks when you want push notifications to your own backend.

Set up once. Track every result.

  1. Configure your destination

    Add and activate the Till, PayBill, or Bank where collections should be routed.

  2. Connect with the API

    Create an API key, follow the STK Push examples, and send a request from your backend.

  3. Confirm before fulfilling

    Check final payment status in LeeTec or receive optional signed webhook events.

Developer documentation

Explore authentication, STK Push request examples, status checks, error handling, and webhook signature verification in the public LeeTec API guide.

Open LeeTec API docs