DiscHub
Processing your request, please wait...
Processing your request, please wait...
Welcome to the official Dischub API documentation. This API allows users to interact with the Dischub payment gateway, enabling users to create orders and manage transactions efficiently on their platforms.
Dischub provides an easy-to-use payment gateway API for sending and receiving payments between users. This API documentation focuses on how to:
If you have no programming skills, you can find a developer
You are going to use demo accounts to test our API on your plaform(s). Follow below steps on how to activate demo accounts.
You need to configure a callback URL in your backend to receive payment status updates from Dischub as soon as a user completes a payment on your Dischub page (NB : Make sure your notify_url is well set to receive POST request from external traffic & make sure to use an "https://..." attached to your domain otherwise using "https://..." without proper domain name will raise errors or you might not receive your order's transaction status !!!)
Now you are going to save the url path of your callback function in your business account settings. Copy the callback url and go to your settings to save !
4a) User will make and complete a payment using your Dischub account number or via "Verified Merchants" page
**Dischub is the only payment method for testing environment**
Once a payment is processed, Dischub will send a status update to the callback URL (notify_url) you provided in your business account settings. This allows you to track the success or failure of transactions in real-time.
{ 'transaction_id': 277602, 'reference' : 'Brian Shumba', 'status': 'success', 'currency': 'USD', 'amount': '14.58', 'timestamp': '2025-01-09 04:20:08.702591+00:00' }
The status
field can have values such as "success" or "failed". Use this information to handle the transaction appropriately in your system.
If your callback URL is unreachable or returns an error, Dischub will retry the notification several times over a period of time. Ensure your endpoint is reliable and logs any issues for debugging purposes.
We recommend you to add more funds of all currencies in your individual demo accounts and test our api as many times as you can. When you get satisfied you can turn off all demo accounts and start receiving real funds.
If you face challenges, get help from other developers in our forum telegram group chat