Skip to main content
SubscriptionFlow Docs
Overview

Route Payments to a Gateway with Payment Routing Rules

Updated

If you've connected more than one payment gateway, Payment Routing Rules choose which gateway a customer pays through on your payment pages, based on a customer or plan field. For example:

  • Customers whose Currency is EUR pay through your European Stripe account, everyone else through your US account.
  • Customers in a particular Country or with a custom field value pay through a local gateway.
  • A specific plan is only sold through one gateway.
  • Some customers are only offered offline payment (bank transfer or cheque).

Without rules, every page uses your default gateway.

Settings › Preferences › Transactions › Advance Settings

Add a rule

  1. Open Settings › Preferences and click the Transactions tab.
  2. Expand Advance Settings and find Payment Routing Rules.
  3. Click Add Rule. The Add New Payment Routing Rule dialog opens.
  4. Fill in the rule:
    • Select Module: Customer to match a field of the paying customer, or Plans to match a field of the plan being bought or invoiced.
    • Select Field: the field to check, for example Currency or Country.
    • Field Value: the value the field must have. It appears once you've chosen a field, and must match exactly.
    • Payment Gateways: the gateway to use when the rule matches. Choose No Gateway (Offline Payments) to show only offline payment.
    • Display Secondary Gateway?: PayPal and GoCardless count as secondary gateways. Leave it on to still offer them, if they're enabled, next to the chosen gateway. (Not shown when the rule's gateway is PayPal or GoCardless.)
    • Display Offline Payment?: appears once you've chosen a gateway. Turn it on to also offer offline payment. It applies to public checkout only.
  5. Click Save. The rule is saved straight away; you don't need to click Save Changes at the bottom of the page.

Add New Payment Routing Rule

Rules are listed in the Payment Routing Rules table. Use the edit and delete icons in the Action column to change or remove a rule. In the example below, customers whose Billing Country is CA can only pay offline, and customers in the US pay through Braintree.

Payment Routing Rules table

How rules are applied

  • Rules are checked in the order they were added. The first rule that matches decides the gateway; later rules are ignored.
  • For Plans rules on an invoice payment page, the rule matches if any plan on the invoice has the value.
  • If the matched rule's gateway is disabled, SubscriptionFlow moves on to the next rule, and if nothing else matches, uses your default gateway.
  • If no rule matches, the default gateway is used.

Where rules apply

Rules apply when a customer pays on one of your pages:

  • the hosted checkout page,
  • the invoice payment page (the pay link in invoice emails),
  • the payment method page where customers add or update a card (Customer rules only).

Routing rules don't change automatic renewal charges or payment retries. Those are charged to the payment method already saved for the customer or subscription, on the gateway where it was saved. To move a customer to another gateway, have them add a new payment method on the payment method page while a rule routes them there.

Limits

  • One condition per rule. To route on two fields, create a custom field that combines them, or add one rule for each value.
  • There's no percentage split of traffic between gateways, and no automatic retry on a second gateway when a payment fails.
Was this article helpful?0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.