With more than one gateway connected, PaymentHooks decides which one takes each payment. It looks at these, in order:
- 1The gateway selected at checkout. The hosted checkout sends the gateway the customer pays with (chosen under
Pay withwhen several are offered). If that connection can take the payment it is used and rules are skipped. - 2Your routing rules, lowest
Prioritynumber first. The first enabled rule that matches decides the gateway. - 3Otherwise, your fallback order: the first connection in the order that can take the payment, for example one enabled for its currency.
Set the fallback order
Open a gateway's page in Gateways > Marketplace. In Webhook & routing, use the up and down arrows next to Fallback order to move it. Position 1 is tried first. Turn off Use for routing to stop sending any payments to that gateway.
Add a routing rule
- 1Open Settings > Routing Rules and click Add Rule.
- 2Enter a
Rule nameand aPriority. Lower numbers are checked first. - 3Under
If, pick a field, an operator and a value. Fields are amount, currency, customer country, payment method and card brand; the operators offered fit the field (for exampleat leastfor amounts,is one offor countries). Click Add condition for more, and choose whether all or any must match. - 4Under
Route to, choose aStrategy:One gateway,Percentage split(share matching payments, for example 70% and 30%, adding up to 100%) orLowest cost(each payment goes to the connection with the lowest fee for its amount). Pick the connections, and optionally aFallback (optional). - 5Click Test Rule to see which rule and gateway a sample payment would get, then click Create Rule.
Currency is condition, amounts use that currency.If a rule's gateway cannot take the payment, its fallback gateway is used. If the payment through the rule's gateway fails, PaymentHooks tries it once through the fallback. Use the switch on each rule to turn it on or off, Edit to change it, and Delete to remove it after confirming.