OAuth Flow

The following is the flow in which Cashfree OAuth is provided for your application on the Cashfree Payments platform.

  1. Partner signs up with Cashfree Payments and creates an app on the partner dashboard by entering the app name, scope, and redirect URL.
  2. After creating the application, the partner can view the app credentials, client ID and secret key on the partner dashboard.
  3. On the partner website or application, while trying to use a service of the application, the merchant is asked to connect with Cashfree Payments.
  4. Application redirects the merchant to Cashfree authorization URL that requests for the merchant to login and asks for merchant's approval to grant access to the requested resource.
  5. The merchant will log in with his credentials on the Cashfree Payments login page. Once the login is successful, the merchant will get the authorization screen to give the authorization to partner for accessing the profile and perform actions on behalf of the merchant.
  6. After the merchant approves or rejects the request, Cashfree Payments will redirect to the redirect URL specified.
    • If Approved, an authorization_code is sent to the partner, and the merchant will be redirected to the redirect URL specified.
    • If Denied, the error reason is sent to the Partner and the merchant will be redirected to the success redirect URL specified.
  7. On approval, the partner application requests for an access_token and refresh token in exchange for the authorization_code.
  8. The partner application can now use this access_token to access Cashfree APIs on behalf of the merchant.
OAuth FlowOAuth Flow

OAuth Flow


Did this page help you?