What is the difference between test and live API keys?

Your API account has two kinds of keys: test keys and live keys. They look similar and call the same endpoints, but they behave very differently. Understanding the difference helps you build safely and avoid surprises such as real money leaving your wallet during development.

Test keys (sandbox)

A test key puts your requests into sandbox mode, a safe environment that imitates the real service.

  • No real recharge, bill payment, payout or verification takes place.
  • A separate test wallet is used, so your real balance is never touched.
  • Responses follow the same format as live responses, so your code can be built and tested fully.
  • The documentation lists sample inputs that return success, failure or pending, so you can test every path.
  • Webhooks are sent to your webhook URL in the same way, marked as test events.

Test keys are available as soon as you create an account, even before your business KYC is approved.

Live keys (production)

A live key sends requests to the real service providers.

  • Recharges reach the operator, bills are paid through the bank network, and payouts move real money.
  • Verification requests return real data from the relevant sources and are charged per request.
  • The cost of each successful transaction is deducted from your live wallet.
  • Live keys are only available after your account and the specific services are approved.

How to tell which key you are using

Keys are labelled in your client area under the API section. API responses also include a mode field, such as "mode": "test", so you can log and check it. We suggest your application shows a clear banner in its own admin panel when it is running in test mode, so staff do not confuse test results with real ones.

Keeping environments separate

  • Store the key in an environment variable or configuration file that is different for each server, not in the code itself.
  • Use the test key on your development and staging servers and the live key only on production.
  • Keep test and live webhook URLs separate where you can, for example https://staging.pepploweb.com/webhooks/api and https://shop.pepploweb.com/webhooks/api.
  • Never copy a production database to staging without replacing the live key in its settings.

Switching from test to live

  1. Confirm your integration handles success, failure and pending results correctly in test mode.
  2. Check that webhook signature verification is working.
  3. Make sure your business KYC and service activation are approved.
  4. Add funds to your live wallet.
  5. Generate a live key and whitelist your production server IP.
  6. Update the production configuration with the live key and restart any queue workers so they pick up the change.
  7. Send one small real transaction and confirm the result in both your system and our transaction report.

Common mix-ups

  • "My live transaction returned test data": the server is still using the test key. Check the configuration actually loaded by the application, including any cached configuration.
  • "My test call was rejected": the service may not be available in sandbox for your package, or the test IP is not whitelisted.
  • "My live balance did not change": you were in test mode, or the transaction failed and was not charged.
The examples in this article are simplified to show the flow. Field names, endpoint paths and response formats can differ by service, so always follow the current reference in our API documentation.

Learn more

See our API documentation for sandbox test values, and the pricing page for live rates. If you need help moving to live, open a ticket.

Was this article helpful?

Still stuck? Open a support ticket and our team will help.


Related articles

← Back

Chat with us
Hi! Send us a message and we will reply here as soon as we can.
Security check image
Chat with us