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.
Who is it for?
Section titled “Who is it for?”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.
What do I need before I start?
Section titled “What do I need before I start?”- A CiraIQ account on the Basic plan or above (plans)
- Your WhatsApp, linked to CiraIQ
- Your M-Pesa Daraja app keys (Paybill or Till)
- Your WooCommerce REST API keys
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?”- 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.
- In “New order” add your WooCommerce store URL and REST keys (WooCommerce → Settings → Advanced → REST API, Read/Write), tick “Order created” and click Register.
- In “Ask the customer to pay” add your M-Pesa (Daraja) keys with the Lipa na M-Pesa passkey.
- Orders need a billing phone.
- Link your WhatsApp, then turn it on.
- Test it: place a test order or payment in your store. Each step turns green when it works; click one to see its output.
- Publish to switch it on. It now shows ACTIVE on My workflows.
What does each step do?
Section titled “What does each step do?”| # | Step | What it does |
|---|---|---|
| 1 | WooCommerce Order Event | Starts the workflow on a WooCommerce order, customer or product change. |
| 2 | If / Else | Branch the workflow based on conditions. Routes to the true or false path. |
| 3 | M-Pesa | Send 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. |
| 4 | If / Else | Branch the workflow based on conditions. Routes to the true or false path. |
| 5 | WooCommerce | Look up and update orders, products, stock and customers in your WooCommerce store. |
| 6 | WooCommerce | Look up and update orders, products, stock and customers in your WooCommerce store. |
| 7 | Send messages, voice notes, buttons and media on WhatsApp - or call with an AI voice agent | |
| 8 | WooCommerce | Look up and update orders, products, stock and customers in your WooCommerce store. |
| 9 | Error Trigger | Runs when this workflow fails. Wire it to a notification to be told. |
| 10 | Send messages, voice notes, buttons and media on WhatsApp - or call with an AI voice agent |
How can I change it?
Section titled “How can I change it?”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.
Related
Section titled “Related”- M-Pesa for WooCommerce: STK Push on Every Order on ciraiq.com: full description and live preview
- M-Pesa automation and templates
- WhatsApp automation and templates
- WooCommerce automation and templates
- More Online Store templates
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.