Testing in sandbox mode
When you register with Durianpay, you will receive access to sandbox / testing environment which can be used for simulation and testing, all transactions made within sandbox mode are simulated hence it is completely safe
To simulate the payment charge API flow in sandbox mode, merchants can use
By default, the payment is kept on processing state for
ewallet and simulates the successful scenario for rest of the payment methods.
To simulate the failure/success scenario, you should use the Json field from
sandbox_options request. This contains
Note: Currently sandbox_options is supported for VA, E-Wallet, RetailStore and BNPL.
Use the simulator built-in to the dashboard to test & explore VA & E-Wallet payment methods. Currently the dashboard simulation is available only for VA & E-Wallet payments.
You can access the simulator by:
- Login to the dashboard
- Click on “Sandbox Simulator” option on the left menu
- Test success and failure scenario as per your requirement
How to use the simulator:
- Create a transaction in sandbox mode
- Open “Sandbox Simulator”
- Select which status you want to simulate for the payment -