Advantages
- Safe Testing: You can conduct thorough testing without affecting real transactions. This safeguards your live environment while refining payment flows.
- Realistic Simulations: You can mimic real-world scenarios with our realistic simulations. You can as well test various payment methods, edge cases, and user interactions effortlessly.
- Enhanced Debugging: You can diagnose and troubleshoot issues effectively with detailed error reporting. Identify and resolve potential challenges before you impact your live users.
How to simulate working environment in sandbox?
To begin with, login to your Partner Dashboard > and click the Switch to Test option. The dashboard will switch to the Test Environment (sandbox). There will be a visible label at the top to let you identify that you are in the Test Environment.


curl
curl
The data between Live and Test environments is completely isolated. Any data changes (eg. merchant addition, order creation etc.) in this environment will not happen in Live, and vice versa. These are not live transactions, these are just simulations. No fund movement will occur.
Partner webhooks
You can also configure webhooks in the test environment. To configure partner webhook,- Go to Partner Dashboard > Developers > Webhooks.

- Click Add Webhook URL and enter the URL where you want to receive the updates.
- Select the events for which you want to configure the webhooks to receive updates, and click Add Webhook.

Payment success webhook
A payment success webhook notifies you when a payment completes successfully. Use this event to update the payment status, trigger fulfilment, and send a confirmation to the customer.Sample payload
Payment failed webhook
A payment failed webhook notifies you when a payment attempt fails and Cashfree receives a failure response from the bank. Use this event to record the failed attempt, notify the customer, and allow them to retry the payment.Sample payload
Payment user dropped webhook
A payment user dropped webhook notifies you when a customer abandons the payment flow before completing it. For example, the customer may leave the bank’s OTP page without entering the OTP or open a UPI app without entering the UPI PIN. Use this event to track incomplete payment attempts.Sample payload
Partner payment webhooks use the same payload structure as merchant payment webhooks for the corresponding event and webhook version, with one additional top-level object:
merchant. Its merchant_id field identifies the merchant associated with the payment, so you can route each event to the correct merchant in your platform.