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

# Recurring Payments

> Create and collect an authorisation transaction from your customer and charge the customer for recurring payments 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>

You can use Optimizer Recurring Payments to set up and oversee customer payments on your terms. It is a user-friendly self-serve feature on Optimizer that simplifies the process, enabling you to establish recurring payment schedules for your customers effortlessly.

## Supported Payment Gateways and Methods

| Payment Gateways | Payment Methods                                                                                                                                                                                                                                                                                                                                               |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| PayU             | <ul><li><a href="/docs/payments/recurring-payments/emandate/integrate" target="_blank">Emandate (Live)</a></li><li><a href="/docs/payments/recurring-payments/cards/integrate" target="_blank">Cards (Live)</a></li><li><a href="/docs/api/payments/recurring-payments/upi/create-authorization-transaction" target="_blank">UPI Autopay (Live)</a></li></ul> |
| Razorpay         | <ul><li><a href="/docs/payments/recurring-payments/emandate/integrate" target="_blank">Emandate (Live)</a></li><li><a href="/docs/payments/recurring-payments/cards/integrate" target="_blank">Cards (Live)</a></li><li><a href="/docs/api/payments/recurring-payments/upi/create-authorization-transaction" target="_blank">UPI Autopay (Live)</a></li></ul> |
| HDFC Mindgate    | <ul><li>UPI Autopay (Live)</li></ul>                                                                                                                                                                                                                                                                                                                          |

<Warning>
  **Watch Out!**

  Optimizer rules apply only for the first-time registration payment. All subsequent debits happen on the same terminal used for registration payment. Optimizer Rules will not be applicable for subsequent payments.
</Warning>

## Integrate Emandate (PayU)

### Prerequisites

1. Write to your PayU Relationship Manager with the following requests:
   * Enable seamless mode for your account. Mention that you use a technology company to handle sensitive card data.
   * Enable the method ENACH for your account.
   * Configure the webhook URL as `https://api.razorpay.com/v1/callback/payu` to receive an Emandate response.
   * Subscribe to webhooks for all emandate payment events.
   * Enable the required banks.
   * Provide **PayU key** and **Salt key** details.
2. You should have an [active Razorpay account](/docs/payments/set-up) with [Optimizer](/docs/payments/optimizer) enabled.
3. Get in touch with your Razorpay Relationship Manager to enable **Emandate** as a payment method.

### Integration Steps

Below are the steps to integrate Recurring Payments for PayU using Emandate as a payment method:

<AccordionGroup>
  <Accordion title="Step1: Add PayU as a Payment Provider">
    Know how to [add PayU as a payment provider](/docs/payments/optimizer/payu-instant#add-payu-as-a-payment-provider).

    <Warning>
      **Watch Out!**

      Ensure you select `Emandate` as a payment method while selecting the required payment methods.
    </Warning>
  </Accordion>

  <Accordion title="Step2: Route Emandate Transactions">
    To route emandate transactions via Optimizer, configure the rule as follows:

    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="600" />

    3. Click **+Add New Rule** and enter the **Rule name** and **Description**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/add-rule-description.gif" alt="add new rule and description" width="600" />

    4. Click **Next** and enter the following rule:
       * In **Select Parameter** field, select **Payment Method**.
       * In **Select Connection** field, select **Equal to**.
       * In **Select Comparing Value** field, select **emandate**.

    <img src="https://razorpay.com/docs/build/browser/assets/images/emandate-rule-condition.jpg" alt="optimizer emandate payu first rule condition" width="600" />

    5. Click **Add Another Condition** and enter the following rule:
       * In **Select Parameter** field, select **Emandate Authentication Type**.
       * In **Select Connection** field, select **One Of**.
       * In **Select Comparing Value** field, select **netbanking** or **debit card** as per your requirement and click **Next**.

    <Warning>
      **Watch Out!**

      PayU does not support Aadhaar-based authentication. To use Aadhaar authentication, route transactions to Razorpay.
    </Warning>

    <img src="https://razorpay.com/docs/build/browser/assets/images/emandate-rule-condition-two.jpg" class="click-zoom" alt="optimizer emandate payu second rule condition" width="600" />

    6. Enter the value **100** in the **Route** field, select **payu** in the **payment via** drop-down, and click Next.
           <img src="https://razorpay.com/docs/build/browser/assets/images/emandate-payu-add-provider.jpg" class="click-zoom" alt="add provider emandate payu" width="600" />
    7. Click **Publish Rule**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/emandate-payu-publish-rule.jpg" class="click-zoom" alt="emandate payu publish rule" width="600" />
  </Accordion>
</AccordionGroup>

## Integrate Cards (PayU)

### Prerequisites

1. Write to your PayU Relationship Manager with the following requests:
   * Enable seamless mode for your account. Mention that you use a technology company to handle sensitive card data.
   * Enable the method **Card Recurring** for your account.
   * Configure the webhook URL as `https://api.razorpay.com/v1/callback/payu` to receive a card recurring response.
   * Subscribe to webhooks for all card recurring payment events.
   * Provide **PayU key** and **Salt key** details.
2. You should have an [active Razorpay account](/docs/payments/set-up) with [Optimizer](/docs/payments/optimizer) enabled.
3. Get in touch with your Razorpay Relationship Manager to enable **Card Recurring** as a payment method.

### Integration Steps

Below are the steps to integrate Recurring Payments for PayU using Cards as a payment method:

<AccordionGroup>
  <Accordion title="Step 1: Add PayU as a Payment Provider">
    Know how to [add PayU as a payment provider](/docs/payments/optimizer/payu-instant#add-payu-as-a-payment-provider).

    <Warning>
      **Watch Out!**

      Ensure you select `Card` as a payment method while selecting the required payment methods.
    </Warning>
  </Accordion>

  <Accordion title="Step 2: Route Cards Transactions">
    To route cards transactions via Optimizer, configure the rule as follows:

    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="600" />
    3. Click **+Add New Rule** and enter the **Rule name** and **Description**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/cards-recurring-add-rule-description.jpg" alt="cards recurring add new rule and description" width="600" />
    4. Click **Next** and enter the following rule:
       * In **Select Parameter** field, select **Payment Method**.
       * In **Select Connection** field, select **Equal to**.
       * In **Select Comparing Value** field, select **card**.

    <img src="https://razorpay.com/docs/build/browser/assets/images/card-recurring-rule-condition.jpg" alt="optimizer card recurring payu first rule condition" width="600" />

    5. Click **Add Another Condition** and enter the following rule:
       * In **Select Parameter** field, select **Recurring (card)**.
       * In **Select Connection** field, select **Equal to**.
       * In **Select Comparing Value** field, select **true** and click **Next**.

    <img src="https://razorpay.com/docs/build/browser/assets/images/cards-recurring-rule-condition.jpg" class="click-zoom" alt="optimizer cards recurring payu second rule condition" width="600" />

    6. Enter the value **100** in the **Route** field, select **payu** in the **payment via** drop-down, and click Next.
           <img src="https://razorpay.com/docs/build/browser/assets/images/emandate-payu-add-provider.jpg" class="click-zoom" alt="add provider emandate payu" width="600" />
    7. Click **Publish Rule**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/cards-recurring-payu-publish-rule.jpg" class="click-zoom" alt="cards recurring payu publish rule" width="600" />
  </Accordion>
</AccordionGroup>

<Info>
  **Handy Tips**

  You can follow similar steps for UPI payments by selecting UPI as the payment method.
</Info>
