Getting Started6 min read

    Connect M-Pesa payments

    Connect your Safaricom Daraja credentials to Jasiyo to automate M-Pesa payment collection, subscription renewal, and customer reactivation.

    Payment provider options

    Paybill - Without API keys

    Easiest start

    You already collect on an M-Pesa Paybill. Enter the number and you are done — STK Push settles straight to it, with no Daraja application and no credentials to chase.

    Till Number - Without API keys

    The same thing for an M-Pesa Till rather than a Paybill. Enter the till number and payments settle directly to it.

    M-Pesa Daraja

    Most common

    Your own Safaricom Paybill or Till with API credentials from the Daraja portal. The most control, and the only option that needs a callback registered.

    PayHero

    Your Paybill is from a bank (Equity, KCB, Co-op, etc.). PayHero handles the bank-side integration and the money lands in your bank account.

    Bank Transfer

    STK Push straight to your bank's Paybill using your bank account number — no forwarding step in between.

    Paystack

    No Paybill yet? Paystack provides STK Push and card payments via their own numbers, settled to your bank the next day.

    IntaSend

    Also no Paybill and no Daraja application. You collect M-Pesa through your own IntaSend account, and customers get the usual STK prompt.

    Kopo Kopo

    You already take payments on a Kopo Kopo till. Enter your API application details and the till number, and M-Pesa payments land where they always have.

    DPO Pay

    You have a DPO Pay merchant account. Enter your company token and Jasiyo reads your service and mobile money options straight from DPO.

    IoTec (Uganda)

    Uganda

    MTN Mobile Money and Airtel Money for Ugandan ISPs, billed and collected in Ugandan shillings.

    Daraja setup (own Paybill)

    1

    Get your Daraja credentials

    Log in to developer.safaricom.co.ke, open your app, and copy your Consumer Key and Consumer Secret.

    You'll also need your Paybill number (Shortcode) and Passkey from your Safaricom business account manager.

    2

    Enter credentials in Jasiyo

    Go to Settings → Payments in your ISP dashboard and click M-Pesa Daraja. Fill in all four fields and make sure Sandbox mode is off for live payments.

    3

    Register the callback URL

    Click Register Now on the callback notice. This tells Safaricom to notify Jasiyo whenever someone pays your Paybill. Without it, payments arrive but nothing is credited.

    This step is mandatory. Without a registered callback, M-Pesa payments will go through to Safaricom but Jasiyo will never be notified — customers won't be renewed automatically.

    How payments flow end-to-end

    1. 1Customer sends M-Pesa to your Paybill using their unique account number (e.g. JSY-A1B2C3)
    2. 2Safaricom notifies Jasiyo straight away
    3. 3Jasiyo matches the account number to the correct customer
    4. 4The payment is recorded in your Transactions log
    5. 5The customer's subscription is renewed for the appropriate plan period
    6. 6If they were suspended, their login is re-enabled and they are back online within about half a minute
    7. 7An SMS receipt is sent to the customer (if SMS is configured)

    Test a payment

    After connecting, send a small M-Pesa payment to your Paybill using a test customer's account number. Within a few seconds the transaction should appear in Transactions and the customer's subscription should renew.

    Every customer also has a personal payment link. Expand their row on the PPPoE page and copy it — when they open it they get a payment prompt on their phone, which is the easiest way to chase a customer who has forgotten to pay.

    The other gateways

    No API keys at all — If you just want to start collecting, choose Paybill - Without API keys or Till Number - Without API keys on Settings → Payments, enter the number you already use, and save. Nothing else is required.

    PayHero — If your Paybill is from a bank (Equity, KCB, Co-op), choose PayHero, enter your API username and password, then load and select your bank channel. See the PayHero guide.

    Paystack — If you don't have a Paybill yet, Paystack lets you accept M-Pesa STK Push without a dedicated Paybill. See the Paystack guide.

    IntaSend — Another route with no Paybill of your own: create an IntaSend account, then paste your secret key into IntaSend on Settings → Payments. Test it with a sandbox key first — that charges nobody.

    Kopo Kopo — If you already take Buy Goods payments on a Kopo Kopo till, create an API application in your Kopo Kopo dashboard and enter its Client ID and Client Secret along with your till number. Payments keep landing on the same till.

    DPO Pay — If you already have a DPO Pay (Direct Pay Online) merchant account, enter your company token and press Verify & Load Options. Jasiyo reads your service list and your mobile money options from DPO, so there is nothing to type from memory. DPO has no test mode, so keep your first payment small.

    IoTec — Ugandan ISPs collect MTN Mobile Money and Airtel Money through IoTec (Uganda), using an IoTec Client ID and Secret.