Reference

Testing

Test your CamelPay integration with a test API key against the same production API — there is no simulated sandbox.

Test vs Live

There is no separate sandbox domain or simulated environment. Test and live requests hit the same base URL — what changes is the API key prefix on the developer app you created it under:

bash
CAMELPAY_API_URL=https://api.camelpay.in

# Test key (created under a "test" environment developer app)
CAMELPAY_API_KEY=cp_test_your_key_here
Test transactions still go through the real mobile money network — there are no simulated phone numbers that auto-succeed or auto-fail. A test checkout sends a real USSD prompt; you (or whoever holds that test phone) still has to approve or decline it.

Testing Webhooks

Register your webhook URL (see Webhooks) pointing at a tunnel to your local machine (ngrok, or similar) while developing, then run a real small test payment through checkout. There's no synthetic event-trigger endpoint — the delivery log at GET /developers/apps/{app_id}/webhook/deliveries shows you what was actually sent and how your endpoint responded.