Skip to main content

Your own M-Pesa till or paybill (Kenya)

By default, M-Pesa payments are collected through IntaSend's own shortcode. You can connect your own Safaricom till or paybill instead. STK Push, checkout, the payment button and the plugins then all collect into your shortcode, with no changes to your integration.

Before you start​

You need:

  1. A shortcode from Safaricom: a till number or a paybill.
  2. M-Pesa org portal access at org.ke.m-pesa.com. Request it with the shortcode, or later at any Safaricom customer care centre.
  3. A live Daraja app. Create an account on Daraja and go live with your shortcode. Safaricom emails you the pass key when you go live.
  4. No existing callback URLs on the shortcode. If it's already live with another integration, delete its URLs under Daraja's URL management. If you can't, ask Safaricom ([email protected]) to remove them, with a letter on your letterhead, signed and stamped, that names the shortcode, the URLs and the reason.

Connect it​

  1. In the IntaSend dashboard, go to Integrations → Applications and open the M-Pesa settings.

  2. From your app on Daraja's My Apps page, copy these into the form:

    FieldValue
    Account typeTillNumber or PayBill
    ShortcodeYour paybill number, or for a till, its store (head office) number
    Till numberTills only: the number customers pay to
    Consumer key, consumer secretFrom your Daraja app
    Pass keyFrom Safaricom's go-live email
  3. Save, then click Activate. IntaSend registers its callback URLs on your shortcode. To stop, click Deactivate.