Create a rule from scratch
Learn how to create a rule from scratch by defining triggers, conditions, and actions in the Payment Gateway Routing interface.
Complete the following steps to define a rule:
- In the Routing Rules section on the Payment Gateway Routing tab, click Create Rule > Create from Blank .
- Add a Trigger component. From the Component Library on the left, drag and drop the Payment Trigger component to the trigger node in the editing area.
- Add Condition components. You can drag and drop to move your rule map.
- Add an Action component:
- Click the plus icon on the connector line behind the last condition of a branch.
- Click Assign Gateway under Actions .
- Enter a name for the action and select a payment gateway instance available on your tenant from the Payment Gateway list.
- Click Save .
- If you want 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, and then add an Assign Gateway Action.
- After you finish editing all branches, give your rule a name:
- Click the pen icon in the upper left of the page.
- Enter a name in the field next to the Rename button.
- Click Rename .
- 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 .