> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CCAvenue

> Add CCAvenue as a payment provider on Optimizer.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
</div>

Follow the below steps to onboard CCAvenue as a payment provider.

<Warning>
  **Watch Out!**

  * While Optimizer can route payments based on your business logic, the method enablement of each gateway must be handled between you and the gateway, or it may lead to failed payments.
  * CCAvenue does not support **tokenisation**.
</Warning>

<AccordionGroup>
  <Accordion title="Prerequisites">
    1. Write to your CCAvenue Relationship Manager asking to do the following:
       * Ignore the IP validation.

    <Warning>
      **Watch Out!**

      You must provide the attached undertaking signed on your company's letterhead along with signature of authorised personnel for CCAvenue to ignore the IP validation. Know more about [undertaking for Ignore IP Validation](#undertaking-for-ignore-ip-validation).
    </Warning>

    * Enable seamless/S2S mode for your account. Mention that you use Razorpay as the technology company to handle sensitive card data.

    <Warning>
      **Watch Out!**

      You must provide proof of service or business relationship between you and Razorpay to enable seamless/S2S mode.
    </Warning>

    * Enable the methods `cards`, `wallets` and `netbanking`.
    * Disable billing information on MID (Merchant ID).
    * Whitelist the following URL to initiate transaction:
      * `https://api.razorpay.com/`

    2. Copy Razorpay in the email and we will provide the supporting document from our end.
  </Accordion>
</AccordionGroup>

## Integration Requirements

Use the format given below on your company's letterhead to enable IP ignore:

<AccordionGroup>
  <Accordion title="Undertaking for Ignore IP Validation">
    To,<br />
    Infibeam Avenues<br />

    We, `Merchant`, hereby confirm that we want to enable the “ignore IP check “ for existing `bank`
    merchant’s with reseller code `<“________”>` of Infibeam Avenues and accept the risk associated with it
    as stated further. IP/domain white-listing enables restricting the access to merchant’s service from one
    or more trusted IP’s only. For whatsoever reason, if the shared encryption key of the merchant gets
    compromised then it will not be possible to reject the merchant requests coming virtually from anywhere.

    Thanks and Regards,<br />
    `<Name of Signatory>`<br />
    Designation<br />
    Date:
  </Accordion>
</AccordionGroup>

## Add CCAvenue as Payment Provider

<AccordionGroup>
  <Accordion title="To add CCAvenue as a payment provider:">
    1. Log in to your Dashboard.
    2. Go to the **PAYMENT PRODUCTS** section and click **Optimizer**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/optimizer-login.jpg" alt="optimizer login" width="800" />
    3. In the top-right section, click **Add Provider**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/add-provider.jpg" class="click-zoom" alt="Add provider" width="800" />
    4. Select **CCAvenue** in the list of gateways available and click **Next**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/add-ccavenue.jpg" class="click-zoom" alt="Add CCAvenue" width="700" />
    5. Enter the provider name and description and click **Next**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/provider-name-ccavenue.jpg" class="click-zoom" alt="Add Provider Name CCAvenue" width="700" />
    6. Enter your **Access code**, **MID** and **Working Key**.
    7. Select the payment methods you want to enable for CCAvenue and click **Submit**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/add-key-ccavenue-new-one.jpg" class="click-zoom" alt="Add Key CCAvenue" width="700" />

    You have successfully added **CCAvenue** as a payment provider on Optimizer.
  </Accordion>
</AccordionGroup>

## Supported Payment Methods

| Payment Methods | Availability |
| --------------- | ------------ |
| Netbanking      | Live         |
| Cards           | Live         |
| UPI             | Live         |
| Wallets         | Coming Soon  |

## Best Practices

Before routing all traffic or some traffic to a new gateway via Optimizer, the following best practices are recommended:

<AccordionGroup>
  <Accordion title="Live and Test Mode Rules">
    All rules configured on live or test mode on the Razorpay Dashboard will reflect on live mode. However, credentials added on test mode will not be automatically replicated in live mode.
  </Accordion>

  <Accordion title="Sanity Test at Razorpay">
    You can reach out to Razorpay for basic sanity testing of the integration. Razorpay will try a test payment of small value and ensure that the credentials are correct.
  </Accordion>

  <Accordion title="Perform Self-Sanity Test">
    We recommend configuring a rule on live mode to route payments lesser than a set value (for example, ₹2) to the CCAvenue gateway. This helps to test on production whether small value payments are being routed to CCAvenue and working successfully, thus helping to avoid any direct impact on production traffic.<br />

    Follow the steps given below to configure a rule in live mode:

    1. Log in to your Dashboard.
    2. In the left navigation, click **Optimizer**.
    3. Click **+Add Rule** and enter the **Rule name** and **Description**.
    4. Click **Next** and enter the following rule:
       * In **Parameter** field, select **Amount (In Rupees)**.
       * In **Select Connection** field, select **Less Than**.
       * In **Enter Amount** field, enter the value 2 and click **Next**.

    <img src="https://razorpay.com/docs/build/browser/assets/images/add-rule.jpg" class="click-zoom" alt="Add Rule" width="700" />

    5. Enter the value 100 in the **Route field**, select **CCAvenue** in the **Payment Via** field, and click **Next**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/target-provider-ccavenue.jpg" class="click-zoom" alt="target Provider CCAvenue" width="700" />
    6. Click **Publish Rule**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/publish-rule-ccavenue.jpg" class="click-zoom" alt="Publish Rule CCAvenue" width="700" />
  </Accordion>
</AccordionGroup>

## Go Live

After the integration is tested and successful, you can go live on CCAvenue.
