Welcome to Zuora Product Documentation

Explore our rich library of product information

Create a rule with a template

Learn how to create and customize a rule using a template in the Payment Gateway Routing section.

Complete the following steps to create a rule by using a template:

  1. On the Payment Gateway Routing tab, click Create Rule > Create from Template in the Routing Rules section.
  2. In the Rule Templates dialog, select a template and then click Use Template . The pre-defined rule is presented on the canvas.
  3. To customize the pre-defined rule, perform the following operations according to your needs:
    • To edit a component, click the more icon on the component and click Edit . Ensure that you edit the Assign Gateway Action components to assign specific gateway instances to each branch.

    • To delete a component, click the more icon on the component and click Delete .

    • To add a component in the middle of a path:

      1. Delete the existing component at the position where you want to add the new component. The existing component and all the components after it will be deleted.

      2. Click the plus icon on the connector line and add the new component.

      3. Add other components to build the rule path.

    • To do an in-transaction retry based on the Gateway Response Code without needing to wait for another retry cycle, add a Response Condition component behind the existing Assign Gateway Action component, and then add another Assign Gateway Action after the Response Condition component.

  4. After finishing your editing, give your rule a name:
    1. Click the pen icon in the upper left of the page.
    2. Enter a name in the field next to the Rename button.
    3. Click Rename .
  5. Click Save in the upper right of the page to save your rule.

The rule is created in inactive status. To activate it, see Activate a rule for more information.

The newly created rule will be the last one in the rule priority list. To change the order of the priority, see Prioritize rules .