> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAMSPay

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

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

## Add CAMSPay as Payment Provider

### 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**.
4. Enter your **Provider Details** and click **Next**.
5. Add your **CAMSPay Production API Details** and click **Submit**.

You have successfully added CAMSPay as a payment provider to Optimizer.

## Configure Custom Rule

### Add custom rule to route your transactions via CAMSPay:

1. Log in to your Dashboard and click **Optimizer**.

2. Click **+ Add New Rule**.

3. Enter the **Rule Name** and **Rule Description**. Click **Next**.

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`

5. In the **Route** section, enter **100**, and select **CAMSPay** in the **payment via** section. Click **Next**.

6. Click **Publish Rule**.

All transactions will now be routed via CAMSPay.

## Best Practices

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

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

### Sanity Test at Razorpay

For basic integration testing, contact Razorpay. We will attempt a small test payment to confirm your credentials are correct.

## Go Live

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