What You Need
- A RohoPay account → payments.rohopay.com
- Your test API key from Dashboard → Projects → your project
curlor any HTTP client
Step 1 — Create a Project & Get a Key
- Sign up at payments.rohopay.com
- Go to Projects in the sidebar → New Project
- Click your project → find the API Keys section
- Click Generate Key → choose Test
- Copy the
test_...key shown — it appears once only
Step 2 — Make Your First Collection
cURL
256700000000 is the RohoPay test number. Use it with any test_ key — it always succeeds immediately without sending a real USSD prompt.Step 3 — Check the Status
successful within seconds.
Step 4 — Receive Webhooks
Add acallback_url to your collection request. RohoPay will POST a deposit.successful event to that URL when the payment is confirmed:
Step 5 — Go Live
When ready for real payments:- Generate a
live_key from the same project page - Replace
test_YOUR_KEYwith yourlive_key - Use real customer phone numbers (not
256700000000) - Ensure your
callback_urlis a public HTTPS endpoint
Next Steps
Card Payments
Accept Visa and Mastercard with 3D Secure.
Webhooks
Verify signatures and handle payment events.
Digital Products
Create payment links and sell digital goods.
Error Handling
Handle errors gracefully.