Skip to main content
This guide takes you from zero to a completed sandbox payin. You need a KryptaPay merchant account with KYB approved — see Verification and compliance.
1

Create a sandbox API key

In the dashboard, open Developers → API keys and create a key with the Sandbox environment.Copy the secret (kp_sandbox_…) right away: it is shown only once. Keep it on your server — never in a browser or mobile app.
2

Check your key

List your wallets. A 200 response means your key works.
3

Collect a payment

Charge a Mobile Money customer. In production they receive a payment prompt on their phone; in sandbox the payment is simulated and no one is charged.
Store the reference: it identifies this payment in webhooks and lookups.
Sandbox payments complete instantly. In production the same call returns PENDING, and the final status arrives a few seconds to minutes later, once the customer approves. See Collect payments for operators that need a redirect or a code.
4

Get the result

Add a sandbox webhook endpoint in Developers → Webhooks subscribed to PAYIN_RECEIVED and PAYIN_FAILED, then repeat the previous step. KryptaPay calls your endpoint when the payment settles — see Webhooks to verify the signature.You can also check the status at any time:
In production, once status is COMPLETED the amount minus fees is credited to your wallet.

Next steps

Send a payout

Pay a recipient from your wallet.

Handle errors

Error format and codes to branch on.

Go live

Checklist before switching to production.

API reference

Every endpoint and field.