// Developer Tools

C2B Simulator

Fire real M-Pesa C2B callback payloads to your server. Test your integration without real payments.

Simulator Live API Docs
Important — Read Before Using

This simulator is for development and testing only. Do not enter production or live callback URLs — use a local tunnel like ngrok (ngrok http 3000) or a dedicated staging environment.
We do not store any URLs, payloads, or responses. All data is discarded immediately after the request completes.

Simulation Parameters

Must be a publicly accessible endpoint (ngrok, staging, or dev server).
Ready to simulate
Your URL is never stored. Requests are proxied server-side and discarded immediately.

Payload Sent

// Waiting for simulation... // Fill in the form and click "Send Simulation" // The M-Pesa C2B payload will appear here.

Your Server's Response

// Your callback URL's response will appear here // after the simulation is sent.
Recent Simulations Session only — not saved

No simulations yet. Send a request to see history here.

Real M-Pesa Format

Payload matches Safaricom's official C2B confirmation structure exactly.

Hashed MSISDN

MSISDN in the payload is hashed, just like real Safaricom callbacks.

Server-Side Proxy

Requests are sent from our server — no CORS issues, works with any endpoint.

Decode with HashBack

Use the HashBack API to decode the hashed MSISDN from simulated callbacks.