Sandbox and Production Endpoint
Sandbox Endpoint - https://sandbox.cashfree.com/pg
Make sure you generate credentials in the test dashboard.
Production Endpoint - 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.
You can check the list of error codes sent by Cashfree here - Error Codes