> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexype.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cashfree

Integrating Cashfree with FlexyPe enables fast, secure, and reliable payment processing directly through your checkout. With just a few steps, you can start accepting payments and ensure a smooth transaction experience for your customers.

## Getting the App ID and Secret Key

<Steps>
  <Step title="Access Cashfree Dashboard">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/cashfree/chf-1.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=355fac10195085eaad41d4d120874017" alt="Hero Dark" width="3022" height="1598" data-path="images/integrations/payment/cashfree/chf-1.png" />

    * Log in to [Cashfree Dashboard](https://merchant.cashfree.com/auth/login).
    * Access the Payment Gateway section.
  </Step>

  <Step title="Get the App ID and Secret Key">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/cashfree/chf-2.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=10c94da91e32d8bba2e467891d84c442" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/payment/cashfree/chf-2.png" />

    * Go to the Developers section in the left panel, then select API Keys.
    * Copy the **App ID** and **Secret Key** and keep it handy for configuration.
  </Step>
</Steps>

## Integrate Cashfree with FlexyPe

<Steps>
  <Step title="Access Cashfree in FlexyPe Dashboard.">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/cashfree/chf-3.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=990d7fe56ac5254e7142bdfadbc35333" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/payment/cashfree/chf-3.png" />

    * Log in to your [FlexyPe Dashboard](https://dashboard.flexype.io).
    * Click on the Settings menu and select Payments.
  </Step>

  <Step title="Configure Cashfree">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/cashfree/chf-4.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=c22e81f0568214c37795ee96e36e6645" alt="Hero Dark" width="3024" height="1596" data-path="images/integrations/payment/cashfree/chf-4.png" />

    * Click the Configure button located within the Cashfree card to proceed with setup.
    * Paste the copied **App ID** into the designated field.
    * Paste the copied **Secret Key** into the designated field.
    * Click Save to complete the configuration.
      <Warning>Do not delete the credentials if the payment provider is in use</Warning>
  </Step>

  <Step title="Use Cashfree for Your Payment Methods">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/cashfree/chf-5.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=5b0448d86cff66a435e735a06940cd03" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/payment/cashfree/chf-5.png" />

    * In the section below, you'll see a list of payment methods.
    * If you want to use Cashfree to handle any of these methods, change the provider to **Cashfree**.
    * Repeat this for each method you wish to route through Cashfree.
      <Warning>Make sure Cashfree is fully configured before selecting it as a provider.</Warning>
  </Step>
</Steps>

## SetUp Cashfree Webhooks

<Steps>
  <Step title="Access Cashfree Dashboard">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/cashfree/chf-6.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=171f28c35e9ecf8efbea3ba319902857" alt="Hero Dark" width="3024" height="1604" data-path="images/integrations/payment/cashfree/chf-6.png" />

    * Return to Payment Gateway section in your Cashfree Dashboard.
    * Go to the Developers section in the left panel, then select Webhooks.
  </Step>

  <Step title="Create a Webhook for Payments">
    <Note>Webhooks set-up is a mandatory step as it confirms the order creation on your store</Note>

    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/cashfree/chf-7.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=06196efae87e7004f2a0c23ffcdda50b" alt="Hero Dark" width="3024" height="1602" data-path="images/integrations/payment/cashfree/chf-7.png" />

    * Click on the **Add webhook endpoint** button.
    * In the endpoint URL field, paste the following URL:

    ```
    https://api.flexype.in/v1/public/pg/cashfree/webhook
    ```

    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/payment/cashfree/chf-8.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=0c6bcb368bc832bdcf0bd0e605c0e7f8" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/payment/cashfree/chf-8.png" />

    * In the Webhook Version, select year **2022**.
    * Click on continue.
    * Under Policy select the below events:
      * Refund
      * Auto Refund
      * Settlement success
      * Settlement failed
      * Failed Payment
      * Success Payment
    * Click continue and then click **Save** to finalize the webhook.
  </Step>

  <Step title="Complete Payment Setup">
    * After adding your payment credentials in FlexyPe and configuring the webhook, the setup is complete.
    * FlexyPe is now connected to your Shopify store and ready to process payments.
  </Step>
</Steps>

By following these steps, you’ll successfully integrate Cashfree with FlexyPe, enabling secure payment processing and a smooth checkout experience.
