Where to find it
In the admin, click the Settings gear in the top bar. In the Settings sidebar, under Payments, select Payment Routing. To open the screen, your role needs at least View only for Payment Routing, in the Settings card on the role’s Permissions tab. To change rules, the fallback order or test mode, the role needs Full access for Payment Routing. To add a rule, change a rule’s gateway, or add a gateway to the fallback order, your role also needs at least View only for Gateways, in the Settings card. With View only, you can see the rules and the fallback order but can’t change them: Add rule, the edit and delete buttons, Add to order and Save order don’t appear, and the Test mode button is unavailable. An admin manages roles on Roles.What’s on the screen
The top bar holds the Test mode button. See Test mode. If you’ve put countries in test mode, a banner about it appears below the top bar. Below that, one card holds two sections: Routing rules and Default Fallback Order. Only card gateways appear on this screen. For non-card payment accounts, see APM.Routing rules
Rules are evaluated in order, from the top. The first rule a payment matches is the one that’s used. If no rule matches, the payment falls through to the Default Fallback Order below. Until you add a rule, every payment uses the fallback order. Rules and the Default Fallback Order decide which gateway takes checkout payments and payments entered by admins. To limit a rule to orders entered by admins, give it a Cart Source condition with the valueadmin.
Subscription renewals normally don’t follow your rules or the fallback order. A renewal usually stays on the subscription’s own gateway while that gateway is active.
If you see CIT (E-commerce), MIT (Recurring) and MOTO (Admin-initiated) tabs on this screen, each tab has its own rules and fallback order, and each rule applies only to its tab’s payments.
The Add rule button sits next to the Routing rules heading. With no rules, the section shows No rules yet. Add one to start routing traffic.
Each rule in the list shows:
- A drag handle and the rule’s position in the list.
- The rule’s name, then an arrow and the gateway it sends payments to. A rule that splits payments lists each gateway with its percentage. Past three gateways, the rest appear as a count, such as +2 more.
- The rule’s conditions, shown as chips such as
payment_source = apple_pay. A rule without conditions shows No conditions — matches all. - The pencil (Edit rule) and trash (Delete rule) buttons.
Default Fallback Order
This is the ordered list of gateways used when no rule matches a checkout or admin payment, or when cascading a soft decline. Only active gateways are eligible for routing. Each row shows a drag handle, the gateway’s position, its logo and name, and its gateway type under the name. An inactive gateway is grayed out and shows Not eligible for routing until you activate it. Card gateways that aren’t in the order appear below the list, with a dash instead of a position and a Not in fallback order badge. They’re never used as a fallback until you click Add to order and save. If you don’t have any card gateways yet, the section says No eligible processors. Set up a card gateway on Gateways to fill the list. The Save order button next to the heading saves the order. It stays unavailable until you change something.Add a rule
1
Open the panel
Click Add rule. The Add rule panel opens. The note at the top reminds you that the rule applies to every transaction type unless you add a Cart Source condition.
2
Name the rule
Enter a Rule name. It starts as
Rule followed by the next number, such as Rule 3. If you leave it empty, the rule keeps that name.3
Add conditions
Under Conditions, click Add Condition. A new row appears, set to the first condition you haven’t used yet. Choose the condition you want, and then set its value. See Conditions.A payment must match every condition in the rule, so the rows are joined by AND. To remove a condition, click the trash button at the end of its row. A rule with no conditions matches all payments.
4
Choose the gateway
Under Routing, click Add Processor. A row appears with a gateway already picked. Choose the gateway you want from its list. An inactive gateway shows Inactive — activate to route. A rule that targets it falls through to the default fallback order until you activate the gateway.
5
Split payments, if you want
To split matching payments across gateways, click Add Processor again for each gateway, and then enter a percentage for each one. The Total must equal 100%. Each time you add or remove a gateway, the percentages reset to an even split, so enter them after you’ve added all your gateways. To remove a gateway from the split, click the trash button on its row.
6
Choose whether it's active
The switch at the bottom of the panel reads Active for a new rule. Turn it off to keep the rule but skip it during routing. The label changes to Inactive.
7
Save
Click Save rule. The button is available once every condition has a value, the rule has at least one gateway, and split percentages total 100%. The new rule goes to the bottom of the list.
Conditions
Conditions you can use include:
You can use each condition once in a rule. For a condition that takes one value, choosing another value replaces the first.
Edit a rule
1
Open the rule
Click the pencil (Edit rule) on the rule’s row. The Edit rule panel opens.
2
Make your changes
Change the name, conditions, gateways or the Active switch, as described in Add a rule.
3
Save
Click Update rule.
Reorder rules
Drag a rule by its handle to a new position. The new order saves right away. If the save fails, you see an error and the list goes back to its previous order.Delete a rule
1
Choose Delete
Click the trash (Delete rule) on the rule’s row.
2
Confirm
In the Delete rule dialog, click Delete. This can’t be undone.
Change the default fallback order
1
Arrange the gateways
Under Default Fallback Order, drag each gateway by its handle into the order you want. The positions update as you go.
2
Add missing gateways
For a gateway marked Not in fallback order, click Add to order. It joins the end of the list, and you can drag it into place.
3
Save
Click Save order. A message confirms that the order was updated.
Test mode
Test mode works only after it’s turned on for your company, and it’s off by default. Until then, the Test mode panel shows Not active until enabled. The countries you select are saved, but all payments keep routing normally.
1
Open the panel
Click Test mode in the top bar. The Test mode panel opens.
2
Choose the test gateway
Select a Test gateway. The list shows your card gateways that have Test Only or Sandbox Mode turned on in Gateways. If you don’t have one, the panel shows No test gateway configured, and you can’t add countries until a test gateway exists.
3
Select countries
Under Countries in test mode, click a country to select or deselect it. Select all adds every country the test gateway is assigned to, and Deselect all clears the list. A country the test gateway isn’t assigned to shows the gateway’s name followed by not assigned, and you can’t add it.
4
Save
Click Save. The button is available once you’ve changed something. The panel closes when the change is saved.
Frequently asked questions
How do I split payments between gateways by percentage?
How do I split payments between gateways by percentage?
Add a rule with no conditions so that it matches every payment, and add each gateway under Routing with its percentage. The percentages must total 100%. Rules above it still run first. To split only some payments, add conditions to the rule.
What happens to payments that no rule matches?
What happens to payments that no rule matches?
They fall through to the Default Fallback Order. The same happens to payments that match a rule whose gateway is inactive. If you have no rules, every checkout and admin payment uses the fallback order. Subscription renewals don’t use it. See Routing rules.