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

# CCAvenue

> Connect a CCAvenue account to Cashfree FlowWise to route credit and debit cards, UPI, netbanking, and wallet transactions through smart orchestration rules.

* [x] Cards (Credit, Debit and Prepaid)
* [x] UPI
* [x] Netbanking (all major banks)
* [x] Wallets

## Required steps

To be able to use CC Avenue on Flowwise, you will need to get the following items implemented for your CC Avenue account from your CC Avenue Account Manager:

1. Ensure that CCAvenue has enabled S2S (server-to-server) access on your merchant account. Drop an email to your CCAvenue account manager/SPOC for this (read email below).

2. Get <Tooltip tip="If retry is enabled, Cashfree will not know about the status of the payment, and it may lead to incorrect payment information and mismatches.">auto retry disabled</Tooltip> at CCAvenue for a seamless transaction journey for the user.

3. You will need to get Cashfree IPs and header whitelisted. This is required so that transaction requests on CCAvenue can be made through Cashfree’s Router. Please get the following IPs whitelisted from CCAvenue:
   1. Production: 52.66.101.190
   2. UAT: `52.66.25.127` and `15.206.45.168`

4. To get the IPs and header whitelisted, you need to write a mail to CCAvenue ([service@ccavenue.com](mailto:service@ccavenue.com)) with the following details:
   1. CCAvenue Merchant ID (received in Step 1)
   2. Username
   3. Referrer Header: Please get the following headers whitelisted from CCAvenue
      1. `payments-test.cashfree.com`
      2. `payments.cashfree.com`
      3. `api.cashfree.com`

Once the IPs and Header are whitelisted, you can start using CCAvenue as a Gateway for transactions routing on our Cashfree Router.

<Warning>
  CC Avenue attempts a retry on the CC Avenue checkout page by default. Disable this when using CC Avenue via Flowwise, as you must route all payments through Flowwise (Cashfree) and its checkout. If retry is enabled, Cashfree cannot track the payment status, which may lead to incorrect payment information and mismatches.

  Since, disabling retry when not live on Flowwise might affect your standard integration with CC Avenue, you can request CC Avenue AM to disable auto-retry once you have tested your CC Avenue integration with Flowwise and want to start routing.
</Warning>

## Email to CCAvenue

Send the following email to CCAvenue to enable the correct settings.

<Accordion title="Email" icon="email">
  Dear Account Manager,\
  We are using Flowwise as a technology service provider to manage our integration with CC Avenue for account `Merchant/Account ID`.

  In order to use this TSP, we require certain configurations to be enabled as mentioned below:

  1. Please share MID, Secret Key and Access Code for my account.
  2. Enable S2S/seamless integration for the above MID.
  3. Disablement of the ‘auto retry’ option for all methods.
  4. Configure below end points for transaction callbacks for production and stage:\
     For production - `https://push.cashfree.com/push/v1/pg/pa_ccavenuepg`
     For sandbox/gamma - `https://push-test.cashfree.com/push/v1/pg/pa_ccavenuepg`
  5. Whitelist the followings IPs:\
     Prod: 52.66.101.190\
     UAT: 52.66.25.127\
     VPN IP: 15.206.45.168
  6. Whitelist the follower referer headers at your head:\
     payments-test.cashfree.com\
     payments.cashfree.com\
     api.cashfree.com

  Regards,
</Accordion>

## How to add CCAvenue gateway on Flowwise

1. Log in to the **[Merchant Dashboard](https://merchant.cashfree.com/auth/login)**

2. On the home page, click ‘Payment Gateway’, then select Flowwise from left navbar.\
   Select ‘Gateways’

3. On the top right, click **Add Gateways**.

4. Select CC Avenue from dropdown, and add a unique name and description for the gateway.\
   Then hit ‘next’

5. Select 'PROD' environment and add your **MID**, **Secret Key** and **Access Code** and hit submit.

You have successfully added CC Avenue to Flowwise.
