# Cashfree

With Cashfree integration, you can enable `Cash On Delivery (COD) to Prepaid` flow. This helps you reduce RTO costs as COD orders are known to have higher return probability.

To integrate with Cashfree, follow the below steps -

1. Login to Cashfree dashboard.

2. Navigate to `Developers` > `API Keys (Payment Gateway)` > `API Keys` \ <br>

   <figure><img src="https://303644337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTdWohNbJyoGc4vPpxk1%2Fuploads%2FOcTE0dcabM3UvfGVJUYa%2FScreenshot%202023-05-24%20at%202.28.13%20AM.png?alt=media&#x26;token=41c5a20e-c8f1-4d5c-9c47-813e116d6ecd" alt=""><figcaption></figcaption></figure>

3. Generate an API key, & copy App ID (client\_id) and Secret Key (client\_secret).<br>

   <figure><img src="https://303644337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTdWohNbJyoGc4vPpxk1%2Fuploads%2FdwJN6PwzjeFRzuBkebOR%2FScreenshot%202023-05-04%20at%2012.28.54%20PM.png?alt=media&#x26;token=8dcd02de-b046-4f78-a8c0-3b0b1c8042ff" alt=""><figcaption></figcaption></figure>

4. Finally, in LimeChat Marketing platform, visit `Integrations` > `Cashfree` , click on `Connect Now` & add the saved Client ID & Client Secret.\ <br>

   <figure><img src="https://303644337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTdWohNbJyoGc4vPpxk1%2Fuploads%2F9tPZ8S8f2Zlck1kD2f1c%2FScreenshot%202023-05-24%20at%202.39.53%20AM.png?alt=media&#x26;token=96ddf5f2-9e9a-43bc-977e-bb8d2139fd42" alt=""><figcaption></figcaption></figure>

Once this integration is done, a `COD to Prepaid Link` substitution will become available for substitution in your message templates. You can set a link expiry time & any additional discount percentage/value based on your need.
