If you are getting this error it usually means you are using Production on Cashfree Test server or Test credentials on Production credentials on Test. To fix this do the following:

  1. Go to the page where you get API credentials: https://merchant.cashfree.com/merchant/pg#api-key
  2. Ensure that you get the appropriate set of credentials (Test or Production). Also, ensure that there are no typos in the appId/secretKey
  3. Ensure that in your integration type you are selecting the correct server (test or production) of Cashfree.