> ## 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.

# CAMSPay

> Add CAMSPay 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>

CAMSPay is a Payment Gateway and Aggregator that enables businesses to securely accept a variety of digital payments for both one-time purchases and recurring transactions (like subscriptions or loan payments).

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

<AccordionGroup>
  <Accordion title="Prerequisites">
    * This payment provider is available only with Optimizer. Ensure you have Optimizer enabled for your Razorpay account.
    * The gateway credentials (for example, Merchant Id, Checksum Key and Encryption Keys) must be provided to you by the CAMSPay platform. You will need these for the integration.

    <Info>
      **Handy Tips**

      No additional configuration is required on your businesses end for CAMSPay integration.
    </Info>
  </Accordion>
</AccordionGroup>

## Add CAMSPay as Payment Provider

<AccordionGroup>
  <Accordion title="To add CAMSPay as a payment provider:">
    1. Log in to your Dashboard and select **Optimizer**.
    2. Click **Payment Provider** → **Add Provider**.
    3. Navigate to **Card, E-Mandate, Netbanking, and UPI** → **CAMSPay**. <img src="https://razorpay.com/docs/build/browser/assets/images/optimizer-CAMSPay-add-provider.jpg" class="click-zoom" alt="Add CAMSPay payment provider in Razorpay" width="700" />
    4. Enter your **Provider Details** and click **Next**.<img src="https://razorpay.com/docs/build/browser/assets/images/optimizer-CAMSPay-add-provider-details.jpg" class="click-zoom" alt="Add CAMSPay payment provider in Razorpay" width="700" />
    5. Add your **CAMSPay Production API Details** and click **Submit**. <img src="https://razorpay.com/docs/build/browser/assets/images/optimizer-CAMSPay-provider-api-prod-details.jpg" class="click-zoom" alt="Add CAMSPay" width="700" />

    You have successfully added CAMSPay as a payment provider to Optimizer.
  </Accordion>
</AccordionGroup>

## Configure Custom Rule

<AccordionGroup>
  <Accordion title="Add custom rule to route your transactions via CAMSPay:">
    1. Log in to your Dashboard and click **Optimizer**.
    2. Click **+ Add New Rule**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/add-simpl-rule.jpg" class="click-zoom" alt="Add CAMSPay rule" width="700" />
    3. Enter the **Rule Name** and **Rule Description**. Click **Next**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/optimizer-add-rule-name-desc.jpg" class="click-zoom" alt="Add CAMSPay" width="700" />
    4. Select the rule conditions as follows:
       * **Condition 1:**
         * **When** - `Channel`
         * **is** - `Equal to`
         * `Android`
       * **AND** (Add another condition)
       * **Condition 2:**
         * **When** - `Payment Method`
         * **is** - `Equal to`
         * `Card`

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

    5. In the **Route** section, enter **100**, and select **CAMSPay** in the **payment via** section. Click **Next**. <img src="https://razorpay.com/docs/build/browser/assets/images/optimizer-CAMSPay-priority-route.jpg" class="click-zoom" alt="Add CAMSPay" width="700" />
    6. Click **Publish Rule**.

    All transactions will now be routed via CAMSPay.
  </Accordion>
</AccordionGroup>

## Best Practices

Please note these best practices before routing all or some of your traffic to a new gateway via Optimizer:

<AccordionGroup>
  <Accordion title="Live and Test Mode Rules">
    Rules you set up in test or live mode on your Razorpay Dashboard apply in live mode. However, test mode credentials will not automatically copy to live mode.
  </Accordion>

  <Accordion title="Sanity Test at Razorpay">
    For basic integration testing, contact Razorpay. We will attempt a small test payment to confirm your credentials are correct.
  </Accordion>
</AccordionGroup>

## Go Live

After the integration is tested and successful, you can go live with CAMSPay on Razorpay Optimizer.
