# How to integrate CashFree for COD-to-Prepaid WhatsApp Campaigns?

To enable this payment collection via CashFree, you need to do the following setup

1. Share CashFree API key & Secret with us over <support@quickreply.ai>
2. Setup the callback url in CashFree

## **Add Webhook Endpoint**

To add a new webhook,

1. Go to **Payment Gateway Dashboard > Developers** or click the Developers option from the homepage.
2. Click **Add Webhook Endpoint** to create a new webhook. Enter the endpoint URL <https://app.quickreply.ai/api/cashfree/payment/webhook> and select the webhook version using the drop-down menu. The available API versions are: 2021-09-21, 2022-09-01. Click on **Test** to verify if the webhook endpoint returns a response. Once done, click **Next**.

<figure><img src="https://lh7-us.googleusercontent.com/XsCjqDScOOoOvSzTExyWbTnW8g-cdQ0RiuMOaBrmuRA4ziRLRqZCluxK5G-3dziqr4Yg6RCIvl3EPHGPSpgclOm5lDZCCV5lpmhhGsoU4A0_3mjEcyr5QLHQGrkxfZ0wpjbtANA7aO6IokXrz4lb4g" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-us.googleusercontent.com/Tm4MC-S1ly8BeEqreB6lyo8Fu1-CdnLfq1DMc746dve42z64xnUXDcZD5wpMeyr6oqr29zzN5iGAw8zbOfO5gSQhoEtOD-YpSbKNX15MuhtOdfbco1Ar7mpJKPL5rt1imG2Lzdw9RxsEKtX1k-uzyw" alt=""><figcaption></figcaption></figure>

3\. Select the events **success payment** and **click Add Webhook.**&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/oxgnu62YG3KDwZpqo0OY02cMGCfTCiObz5PqUD0EFZmvxK2l9N32mr-TeUhklNTd4bmedzjrmDT-dfdZADAmwN38MSUJV-WnIzJ7hwosTYDOMTietpbjNpUMRLupLdL-G49Q-9PxmR7sMoDq4l_uMQ" alt=""><figcaption></figcaption></figure>

## Generate API KEY

The API Keys section allows you to view and reset the existing API keys.

<figure><img src="https://lh7-us.googleusercontent.com/dFP9bDj42wyt8yrGKNpR3mwizzBAjkT7GSEpr8xB7H56lQm4FY2Rjmw2swtQaY31Ync0N8j72n5xWgQwg60NKCDghv55IDLHhomQjLi0_mv__J5BZKezdi9mP7MSM1yBNG79zcntNPL8EnnX7r6-bA" alt=""><figcaption></figcaption></figure>

To access API keys,

1. Go to **Payment Gateway Dashboard > and click on Developers> API Keys**. Click **API Keys** under Payment Gateway.
2. In test environment API keys will be auto-generated. In prod-environment you need to click on **Generate API Keys** button and do OTP authentication to generate the keys. However you'll be able to generate prod API keys only once your Payment Gateway is activated.
3. Once generated, the API keys are shown in an embedded format. To view the full set of keys, click the ellipsis icon and select **View API Key**. In prod environment you would be required to do OTP authentication to view the keys. You can download the API keys if required.

<figure><img src="https://lh7-us.googleusercontent.com/0nlHoZpHQW4nXQNJuoGCejqi7ehw82Xj3lKltf9ikzU4vKP8GzQWt_Af0u8tv93Dtr2yXtZ_iN0jZ-i7c7tQ1OqRtE2EZf3osVoHELpAfsoHfwhGlWUy3zWNcdBDY8ZV3QAhdNUvZ3-NH_tJBZq6Og" alt=""><figcaption></figcaption></figure>

Once you have API key and Secret downloaded, Please share the keys with QuickReply.ai Support on <support@quickreply.ai>
