Sandbox and Production End Point
Sandbox End Point - https://sandbox.cashfree.com/pg
Make sure you generate credentials in the test dashboard.
Production End Point - https://api.cashfree.com/pg
To process live payments, make sure you use credentials from the live dashboard. Do not share your secret key with anyone.
Partner Authentication for API calls - More details available here.
When you trigger a refund, a refund goes through various states, they are listed below:
|PENDING||This state indicates that the refund is pending.|
|SUCCESS||This state indicates that the refund is processed successfully to the customer account.|
|CANCELLED||This state indicates that the refund has been cancelled.|
|ONHOLD||This state indicates that the refund has been put on hold.|
|FAILED||This state indicates that the refund has failed. A few reasons why refunds fail are listed below:|
1. If the beneficiary account is inactive or frozen, refunds cannot be processed.
2. If there is no sufficient balance in your account.