Testing
Every merchant account includes a sandbox environment, fully isolated from live traffic. Use your
kw_sandbox_sk_ key against the same base URL, https://api.kawrie.com; Kawrie routes sandbox
keys automatically.
Test phone numbers
Sandbox collections resolve automatically based on the phone number used, so you can test each outcome on demand:
| Phone number | Result |
| --- | --- |
| +256700000000 | Collection completes successfully after ~3 seconds |
| +256700000001 | Collection fails with INVALID_PHONE |
| +256700000002 | Collection stays pending for 60 seconds, then completes |
| +256700000003 | Collection fails with PROVIDER_ERROR |
Payouts to any sandbox phone number succeed after a short delay.
Test cards for payment tokens
Payment token pages hosted at pay.kawrie.com use the same test phone numbers above when running
against a sandbox token.
Webhooks in sandbox
Sandbox webhooks fire on the same schedule as production and are signed with the same webhook's signing secret, so you can test your signature verification end to end before going live.
Going live
Once your KYC review is approved, switch your Authorization header from your sandbox key to your
live key. No other code changes are required.