Interactive Simulator
Test your webhooks and frontend integration without writing a single line of code.
The SamaPay Simulator is a powerful tool designed to mirror real-world payment behaviors accurately. It allows you to fire test events to your local or staging server to ensure your business logic is robust.
Simulation Strategies
| Strategy | Phone Number | Expected Outcome | Logic to Verify |
|---|---|---|---|
| Happy Path | 2207000000 | success | Fulfillment & Success Email |
| Edge Case | 2206000001 | insufficient_funds | UI Error Messaging |
| UX Test | 2206000002 | expired | Abandoned Cart Recovery |
SamaPay API Playground
Redirects real POST requests to your local/production server.
API Response
Hit execute to see response
The Bridge: Webhook Stream
Waiting for successful transaction...
How it works
- Select Event: Choose from
payment.success,payment.failed, orpayout.completed. - Customize Payload: Modify the JSON body to include your specific
order_idormetadata. - Fire: Click "Dispatch Event" to send a signed HMAC request to your configured endpoint.
- Debug: View the full request/response cycle in the live log below the simulator.
You can use tools like ngrok to expose your local development server to the SamaPay Simulator.