Skip to content

How do I set up the M-Pesa Reversal Check for Wrong Payments template?

To set up M-Pesa Reversal Check for Wrong Payments, open the template, click Use this template, connect M-Pesa, SMS and WhatsApp, fill in your own details, run a test and publish. It takes about 15 minutes and is made for the Basic plan.

What it does: A customer says they paid the wrong amount or paid twice. Send their M-Pesa receipt from your support form, and the workflow checks the transaction with Safaricom. If it is genuine and the amount matches, it reverses the payment within your limits and texts the customer. If not, it tells you why so you can reply. It ships as a dry run, so nothing is reversed until you switch that off.

Businesses on a Paybill that handle customer refund claims for wrong payments.

The problem it solves: checking a refund claim means logging into the M-Pesa portal and doing the reversal by hand.

How do I set up M-Pesa Reversal Check for Wrong Payments, step by step?

Section titled “How do I set up M-Pesa Reversal Check for Wrong Payments, step by step?”
  1. Copy the template. Open M-Pesa Reversal Check for Wrong Payments and click Use this template. It opens on your canvas as your own copy.
  2. Copy the webhook URL from “Refund request” into your support form; send JSON like {“receipt”:“SGR7ABC123”,“phone”:“0712345678”,“amount”:“1500”}.
  3. In both M-Pesa steps add your M-Pesa initiator keys for the Paybill that received the money (Transaction Status and Org Reversal roles).
  4. It ships as a DRY RUN: a genuine claim gets you a WhatsApp saying what would be reversed, and nothing is sent.
  5. When you trust it, open “Reverse the payment”, set the limits to your real amounts and switch “Dry run” off.
  6. Add your Africa’s Talking keys in “Tell the customer”.
  7. Test it: send a test request to the webhook URL shown in the trigger. Each step turns green when it works; click one to see its output.
  8. Publish to switch it on. It now shows ACTIVE on My workflows.
#StepWhat it does
1Webhook TriggerTrigger workflow via HTTP webhook. Receive data from external services, APIs, or custom integrations.
2M-Pesa TransactionCheck an M-Pesa transaction’s status by receipt number, or reverse a payment you received (guarded).
3If / ElseBranch the workflow based on conditions. Routes to the true or false path.
4M-Pesa TransactionCheck an M-Pesa transaction’s status by receipt number, or reverse a payment you received (guarded).
5If / ElseBranch the workflow based on conditions. Routes to the true or false path.
6SMSSend SMS through your own Africa’s Talking or Twilio account. You add your own API keys - CiraIQ never pays for messages, your provider bills you directly.
7WhatsAppSend messages, voice notes, buttons and media on WhatsApp - or call with an AI voice agent
8WhatsAppSend messages, voice notes, buttons and media on WhatsApp - or call with an AI voice agent
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 Reversal Check for Wrong Payments?

Your WhatsApp, linked to CiraIQ, an M-Pesa initiator connection for payouts and checks and an Africa's Talking or Twilio account for SMS. It is made for the Basic plan.

How long does M-Pesa Reversal Check for Wrong Payments take to set up?

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

How do I know M-Pesa Reversal Check for Wrong Payments is working?

Send a test request to its webhook URL and check the run in Settings → Executions.