Simulating Test Pay Outs
Introduction
After your Durianpay account is created, you will immediately have access to the sandbox feature. This feature will allow you to play around with Durianpay's products without having real consequences in the production environment. The Sandbox environment is accessible with different API Keys and URL from the ones in production.
Getting your Sandbox API Keys
You can access your Sandbox API Keys from your Durianpay dashboard:
- Log in to https://dashboard.durianpay.id/#/login.
- From the menu options, click Settings.
- Click on the API Keys tab.
Simulating a Pay Out
To simulate a Pay Out status in Sandbox mode, the steps are as follows:
Step 1: Create a Sandbox Disbursement
Creating a sandbox disbursement can be done via API or through your Durianpay dashboard - this is the same in the LIVE environment.
Specifically for submitting a disbursement via API, there are differences to note between the Live and Sandbox environment:
- API keys
- base URL
- Sandbox: https://api-sandbox.durianpay.id
- Live: https://api.durianpay.id
Regardless of environment, a proper request body will be required.
Step 2: Simulating the Disbursement Status
The disbursement status can be simulated by using the "Simulator" feature in Durianpay dashboard. To access this feature:
- Log in to https://dashboard.durianpay.id/#/login.
- Change your Durianpay Dashboard mode to
Sandbox
. - Access the Simulator page in Durianpay dashboard.
- Navigate towards Disbursements section in Simulator page.
On this page, there will be a function to manually mark a sandbox disbursement transaction with a specific status, as shown below:
Afterwards, if you have configured your disbursement webhook in the sandbox environment, corresponding webhook will be sent towards the URL (i.e., your server) that you have specified.
Callback configuration in Sandbox environment is exclusive to the one in LIVE environment. When you are going LIVE, please ensure the webhook is also configured in LIVE environment.
Updated about 1 month ago