Skip to content

How do I set up the M-Pesa for WooCommerce: STK Push on Every Order template?

To set up M-Pesa for WooCommerce: STK Push on Every Order, open the template, click Use this template, connect WooCommerce, M-Pesa and WhatsApp, fill in your own details, run a test and publish. It takes about 10 minutes and is made for the Basic plan.

What it does: When a customer places an unpaid order on your WooCommerce store, their phone gets an M-Pesa payment prompt (STK push) for the exact total. Pay, and the order moves to Processing with the M-Pesa receipt on it and you get a WhatsApp. Ignore it, and the order gets a note so you know to follow up. Nothing to install on your site.

WooCommerce stores in Kenya that want M-Pesa payments without installing a plugin.

The problem it solves: orders sit unpaid while you chase customers to send money and then match it by hand.

How do I set up M-Pesa for WooCommerce, step by step?

Section titled “How do I set up M-Pesa for WooCommerce, step by step?”
  1. Copy the template. Open M-Pesa for WooCommerce: STK Push on Every Order and click Use this template. It opens on your canvas as your own copy.
  2. In “New order” add your WooCommerce store URL and REST keys (WooCommerce → Settings → Advanced → REST API, Read/Write), tick “Order created” and click Register.
  3. In “Ask the customer to pay” add your M-Pesa (Daraja) keys with the Lipa na M-Pesa passkey.
  4. Orders need a billing phone.
  5. Link your WhatsApp, then turn it on.
  6. Test it: place a test order or payment in your store. Each step turns green when it works; click one to see its output.
  7. Publish to switch it on. It now shows ACTIVE on My workflows.
#StepWhat it does
1WooCommerce Order EventStarts the workflow on a WooCommerce order, customer or product change.
2If / ElseBranch the workflow based on conditions. Routes to the true or false path.
3M-PesaSend an M-Pesa payment prompt (STK push) to a customer’s phone and wait for them to pay, using your own Daraja app. Money goes straight to your Paybill or Till.
4If / ElseBranch the workflow based on conditions. Routes to the true or false path.
5WooCommerceLook up and update orders, products, stock and customers in your WooCommerce store.
6WooCommerceLook up and update orders, products, stock and customers in your WooCommerce store.
7WhatsAppSend messages, voice notes, buttons and media on WhatsApp - or call with an AI voice agent
8WooCommerceLook up and update orders, products, stock and customers in your WooCommerce store.
9Error TriggerRuns when this workflow fails. Wire it to a notification to be told.
10WhatsAppSend messages, voice notes, buttons and media on WhatsApp - or call with an AI voice agent

It is your own copy, so change anything: the wording, the schedule, who gets alerts, or add steps with the + button. Changes save automatically; on a live workflow they wait as a draft until you click Publish changes. See test and publish and when a step fails.

Questions

What do I need to set up M-Pesa for WooCommerce?

Your WhatsApp, linked to CiraIQ, your M-Pesa Daraja app keys (Paybill or Till) and your WooCommerce REST API keys. It is made for the Basic plan.

How long does M-Pesa for WooCommerce take to set up?

About 10 minutes: copy it, connect your accounts, fill in your details, test it and publish. No code is needed.

How do I know M-Pesa for WooCommerce is working?

Place a test order or payment and check the run in Settings → Executions.