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

# Update Default Rule

> The default rule applies to transactions that do not satisfy any of the custom rules.

For example, you can ensure that 100% of all transactions is routed through payment gateway A.

## View Default Rule

To view the default rule:

<Steps>
  <Step title="Step 1">
    Log in to the Dashboard.
  </Step>

  <Step title="Step 2">
    Select **Optimizer**.
  </Step>

  <Step title="Step 3">
    Click **View Default Rule**. By default, 100% of transactions are routed through Razorpay. You can choose to retain it or edit it as per your requirements.
  </Step>
</Steps>

## Edit Default Rule

To edit the default rule:

<Steps>
  <Step title="Step 1">
    Click **View Default Rule**.
  </Step>

  <Step title="Step 2">
    In the side pane, click **Edit Rule**.
  </Step>

  <Step title="Step 3">
    The rule details appear. Click **Edit Target Provider**.
  </Step>

  <Step title="Step 4">
    Update the priority. Let us assume you want to ensure that 80% of transactions are routed through Razorpay and 20% through payment gateway ABC. To do this:

    1. Enter `80` in the **Route** field and select `Razorpay` against the **payment via** field.

    2. Click **Add Another Provider**.

    3. In the new row, enter `20` in the **Route** field and select `ABC` against the **payment via** field.

    4. Click **Next**.

    5. Click **Publish Edits**.

    6. Click **Yes, Publish** to confirm the change.
  </Step>
</Steps>

### Related Information

* [Add Payment Providers](/payments/optimizer/add-payment-providers)
* [Manage Rules](/payments/optimizer/manage-rules)
