M-Pesa on Shopify

JMSURF PAY guide · updated 21 November 2026

Shopify checkout keeps its own list of payment providers, so JMSURF PAY works next to it. The customer picks an M-Pesa manual payment method at checkout. JMSURF PAY then sends the M-Pesa prompt to the order's phone and marks the order paid when M-Pesa confirms. The money goes straight to your till, paybill or bank.

Set it up

  1. 1Add the payment method. In Shopify open Settings, Payments, Manual payment methods, Create custom payment method. Name it exactly M-Pesa (JMSURF PAY) and add a short note, for example: You will get an M-Pesa prompt on your phone.
  2. 2Ask for the phone at checkout. In Settings, Checkout make the phone number required, or at least shown, so every order carries the M-Pesa number.
  3. 3Create a custom app. In Settings, Apps, Develop apps create an app with the Admin API scopes read_orders and write_orders. Install it and copy the Admin API access token and the API secret key. An app made in the Shopify Dev Dashboard also works: use its client ID and secret instead.
  4. 4Connect the store. In JMSURF PAY open Developers, Integrations, Shopify, Connect a store. Paste the store address (your-store.myshopify.com), the token and the secret, and pick the payment channel. JMSURF PAY adds the order webhook to Shopify for you.
  5. 5Try it. Place a small order with the M-Pesa method and the phone that should get the prompt.

How it behaves

  • Every order webhook is checked with Shopify's signature. Orders paid any other way are ignored.
  • The prompt goes to the order's phone for the amount due. The store currency must be KES.
  • The order note records the prompt and, when paid, the M-Pesa receipt. The order is then marked paid.
  • If the customer cancels or the prompt fails, the order note says so. Send the prompt again from Integrations, to another number if needed.
  • The token and secret are stored encrypted. Disconnecting a store removes the webhook from Shopify.
  • Refunds are not done by JMSURF PAY. Refund from your M-Pesa or bank account and record it in Shopify.

Start on the Free plan: 1 payment channel, up to KES 50,000 a month, test keys included. Questions? WhatsApp +254 712 504 593.

Read next

© 2026 JMSURF PAY. All rights reserved. · ODPC reg. no. 194-9812-26EBPowered by JMSURF TECHNOLOGIES LTD