Authentication

Calling the Authentication APIs allows you to get and verify bearer tokens returned by Cashfree Payments. We require this token for all further communication.

📘

We do not support connected fund source accounts with respect to the Verification suite products.

Cashfree Payments' libraries automatically call the Authorize API and internally store the token.
Do not store the token in an insecure manner. Regenerating a new token does not invalidate the already generated token. Token generated from one IP address cannot be used from a different IP.
Token generated is valid for 600 seconds. Please ensure that you recall the authorize API once the token has expired.

IP Whitelisting and Public Key

Ensure your IP is whitelisted. To find out how to whitelist your IP or if you have a dynamic IP, take a look here).

To add the public key in the code snippet, ensure you read the file directly and not copy paste it. Copy pasting the public key turns out to be erroneous.