Smart Router
Route each card payment to the settlement account most likely to succeed, with configurable optimization models and an automatic circuit breaker.
Smart Router selects the settlement account for each card payment (including cards paid through Apple Pay and Google Pay) from the accounts in a configuration, based on how similar payments performed recently. You attach a Smart Router configuration as the target of a routing rule in the same place you select a settlement account, and Smart Router picks an account for each payment in milliseconds.
Requirements
Before you use Smart Router, make sure you have:
- Smart Router enabled on your account. If Smart Router doesn't appear in the dashboard sidebar, contact your Pay.com account team to enable it.
- A dashboard user role that can edit Smart Router, to create configurations.
- Two or more settlement accounts that process cards.
- Routing rules enabled on your account. Smart Router routes only the payments that a routing rule sends to it. See Routing rules.
How Smart Router picks an account
For each payment, Smart Router looks at how payments like it performed recently on each of the configuration's settlement accounts. It ranks the accounts with the configuration's optimization model and favors the top-ranked account.
Smart Router keeps learning as your traffic changes. It waits for enough history before it favors an account, and sends a small share of traffic to accounts it knows less about, so its picks stay current. A saved card can go back to the settlement account where it last succeeded.
Smart Router never selects an account that the payment has already tried, or an account that's disabled for the payment's method or transaction type.
Optimization models
Each Smart Router configuration uses one optimization model to rank its settlement accounts. Pick the model in Model when you create or edit a configuration.
| Model | Ranks accounts by | Best when |
|---|---|---|
| Approval rate | The share of payments each account approves. | You want to maximize approved payments. |
| Financial | The share of the requested amount that reaches you after fees and currency conversion. | You want to maximize net revenue after processing costs. |
| Volume-weighted approval rate | The share of the requested amount each account approves, so larger payments count for more. | High-value payments matter more than small ones. |
| Fraud | Approval rate, while keeping each account's fraud rate at or below the maximum you set for it. | You must keep each account under an acquirer or network fraud threshold. |
Create a configuration
A configuration defines the set of settlement accounts Smart Router can choose from and the optimization model it uses to rank them.
- 1
Open configurations
In the Pay.com dashboard, go to Smart Router → Configurations and click New configuration.
- 2
Name it and pick the accounts
Enter a unique Name of up to 80 characters. In Settlement accounts, select up to 64 accounts that Smart Router can choose from, or leave it empty to let Smart Router choose from any eligible account.
- 3
Choose the model
In Model, select the optimization model Smart Router uses to rank the accounts.
- 4
Save the configuration
Save the configuration. It starts routing within an hour, and shows Awaiting policy until then.
You can't delete a configuration while a routing rule references it.
To restrict an account to specific card networks, go to Smart Router → Overview, click Edit on the account, and select its networks. This can only narrow what the account accepts, and takes effect within an hour.
Route payments to Smart Router
In a routing rule for cards, select the configuration under Smart Router in the list of targets. You can use a configuration in three ways:
- As the rule's target: Smart Router routes every payment the rule matches.
- As one split of a percentage split: Use this to compare Smart Router against a fixed settlement account. The split displays Smart Router · followed by the configuration name.
- As a fallback: Smart Router selects the account for the retry. A fallback chain can reference the same configuration more than once, up to its number of accounts.
When Smart Router can't decide
If Smart Router can't pick an account in time, or a new configuration isn't ready yet, Pay.com picks one of the configuration's available accounts instead, skipping any account the payment already tried. If none is available, a payment routed directly to Smart Router falls through to your standard routing rules, and a Smart Router fallback moves on to the next fallback.
Circuit breaker
The circuit breaker stops Smart Router from sending payments to a settlement account whose approval rate drops sharply against its own recent performance. It watches every account, takes a failing account out of Smart Router traffic, and brings it back once it recovers.
While an account is out of service
The breaker isolates as little traffic as it can:
- Smart Router traffic only: Smart Router stops routing to the account and uses the next-best one. Payments that a routing rule sends straight to the account still go there.
- Narrowed when possible: When the drop is limited to one BIN, card network, or issuing country, the breaker removes the account only for that traffic.
- Last route kept: The breaker never removes the last available account for a payment.
- Wider outages: When many of your accounts drop together, as in a card network outage, the breaker keeps them in service.
A payment that Smart Router moved away from an out-of-service account lists that account under Moved from in the transaction details.
Recovery and service history
The breaker brings an account back once its approval rate recovers. It doesn't send test payments to an out-of-service account. Contact your Pay.com account team to override an account's circuit-breaker status.
To view active and past breaker events, go to Smart Router → Service history. The page shows accounts that are Out of service now and logs each status change:
- Taken out of service: Smart Router stopped sending any of its traffic to the account.
- Narrowed: The breaker removed the account only for the affected BIN, card network, or issuing country.
- Back in service: Smart Router resumed routing traffic to the account.
To receive alerts when a settlement account's approval rate drops, configure anomaly detection.
See Smart Router's decisions
When processor details are enabled on your account and Smart Router selected
the account, underlying_processing_details.routing_details includes three
additional fields. When Smart Router didn't select the account, these fields
are omitted rather than false.
| Field | What it holds |
|---|---|
smart_router | true when Smart Router selected the account. |
smart_router_configuration_id | The ID of the configuration that selected it. |
smart_router_configuration_name | The configuration's name. |
{
"underlying_processing_details": {
"settlement_account": "sa_296645958265997349",
"routing_details": {
"selected_methodology": "rule_engine",
"rule_engine": {
"rule_id": "rl_772846036363248640"
},
"smart_router": true,
"smart_router_configuration_id": "rc_6f1c2b8e-3d4a-4e9b-a7c5-2b8d9e0f1a34",
"smart_router_configuration_name": "EU cards"
}
}
}In the dashboard, Activity → Transactions provides two Smart Router columns (hidden until you add them). Smart Router displays Applied or Not applied, and Smart Router Configuration identifies the configuration. To list payments by outcome, filter by Smart Router and choose Routed by Smart Router or Asked, but not applied.
Open a payment to view its Smart Router details, including the Configuration, Why this account, and the account it Moved from.
Next steps
- Commitments: Meet monthly volume or charge minimums on a settlement account within an approval-rate ceiling.
- Anomaly detection: Receive alerts in Slack, WhatsApp, or PagerDuty when approval rates or volumes change sharply.
- Routing rules: Send card payments to a Smart Router configuration.
- Fallbacks and retries: Retry declined payments and processor timeouts on another settlement account.