Callback forwarding
Forward your existing M-PESA callbacks
If your system already talks to Daraja or KopoKopo, you do not have to rebuild it. Relay the callbacks you receive to a private forwarding URL and we verify each payment with the provider before passing it on, signed.
Forwarded payments are confirmed with the provider, because Daraja does not sign its callbacks.
Prompt sent
STK Push to 07•• ••• 678 · KES 1,500 · INV-2041
Customer entered PIN
Safaricom callback received: claims success
Verified with Safaricom
STK Query: paid · receipt TL3A9K2XQ7 · amount matches
Webhook delivered
POST https://shop.example/payments · 200 OK · signed
X-MyPayments-Event: payment.settled
X-MyPayments-Signature: t=1796313600,v1=9f2c…e41a
{ "event": "payment.settled",
"transaction": { "reference": "INV-2041",
"amount": "1500.00", "status": "settled",
"verified": true, "provider_receipt": "TL3A9K2XQ7", … }
}
How callback forwarding works
A key in the path
Each account gets a forwarding URL with a secret key in its path, never in a query string that proxies would log. Rotate the key whenever you like; the old one keeps working for a grace window.
Same ledger, same webhooks
Forwarded payments appear in your dashboard next to direct ones, marked as forwarded, and are delivered to your webhook the same way.
Questions about callback forwarding
Is a forwarded payment trusted?
Not by itself. It is recorded as received and only becomes settled once Safaricom confirms it.