How do I test with Sandbox mode?

Testing with Sandbox mode allows you to simulate payments made by customers without any money changing hands. It allows you to explore the use of XanPay, integrate with XanPay and test your integration. This can be done even when your account has not been verified. 


Get your Sandbox API Keys

Sandbox API keys are required for testing user flows. Using these keys, you can simulate creating charges, payments made by customers, refunds and all the features of our API.

  1. Head to your XanPay dashboard
  2. On the top of your dashboard, toggle the button to Sandbox mode. mceclip0.png
  3. On the left panel, click on 'API Keys'.
  4. Click 'Create key' mceclip1.png
  5. After clicking the key, a Client ID and Secret will be generated.

That's it! You can use these credentials to build and test your integration. If you are using our API, please remember to use the correct base URL (


Testing Notifications

If you want your system to be updated whenever an update occurs on XanPay, you would need to setup API Notifications. API Notifications are used to send back updates about charges and refunds back to your system.

To test these, you require Sandbox Certificates.