You'll create a test API key, charge a Mobile Money number, and inspect the resulting transaction — end-to-end in about five minutes.
Step 1 — Create a key
Head to Developer → API Keys, click Create key, and copy the secret. You'll only see it once.
iKey format
Keys look like
wr_test_... in test mode and wr_live_... once your business is approved.Step 2 — Make your first charge
Send a POST to /collect/momo. amount is decimal GHS (e.g. 1.00) — we handle any pesewa-string conversion required by the upstream provider.
shell
curl -X POST https://api.webrabbitmedia.com/v1/collect/momo \
-H "Authorization: Bearer wr_test_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1024" \
-H "HTTP-Referer: https://your-app-site.com" \
-H "X-Webrabbitmedia-Title: Your App Name" \
-d '{
"amount": 1.00,
"subscriber_number": "0240000000",
"network": "MTN",
"desc": "Order 1024"
}'Step 3 — Inspect the transaction
Every successful charge is written to your ledger. Open Transactions → Payments to see the gross amount, the platform fee, and your net settlement — or fetch it via the API.
