Skip to Content
Optimize

Routing

Routing decides which acquirer processes a payment. Start with routing entries, then add Dynamic routing rules and cascades with the Altruon Vault.

Every payment needs a destination. Routing chooses it at two levels: routing entries for every account, and Dynamic routing for card payments stored in the Altruon Vault.

Routing entriesDynamic routing
WhereSettings > Payment Gateways > RoutingSettings > Dynamic routing
Available toEvery accountAccounts with the Altruon Vault turned on
Payment methodsEvery methodCards
Decides onPayment method and currencyRules on the card, the amount, the currency and the customer
Payment typesOne table for every paymentSeparate rules for subscription checkouts, one-time checkouts and renewals
After a declineThe payment is declinedOptional cascade: the same card is tried on another acquirer

Routing entries

A routing entry has three parts: a payment method, a currency and an acquirer. It is the minimum you need before checkout can show a payment method.

How a payment is routed
  1. Session
    Currency and method
    The session sets the currency. The shopper picks a method, or you pin one.
  2. Altruon
    Routing entry
    The entry for that method and currency names the acquirer.
  3. Acquirer
    Charge
    Sent with your own credentials. Settled to your account.

Open the routing table

Go to Settings > Payment Gateways and open the Routing tab.

Add an entry

Click + Add Entry and select the payment method, the currency and the acquirer that should process it.

The Add Entry dialog with payment method, currency and gateway fields

Repeat for each method and currency

Add one entry for every combination you sell in, for example cards in EUR, cards in USD and Pix in BRL.

What routing entries change at checkout:

  • A payment method appears at checkout only if a routing entry exists for it in the session's currency.
  • When a session has no payment method (discovery), the shopper sees every method routed for that currency. In Altruon.js, several matching entries render a method selection drawer, and a single match renders that method's fields directly.
  • When a session pins a payment method, only that method is offered.
  • Renewals follow the routing table too, unless Dynamic routing is on with Recurring (MIT) rules.

If a method you expect is missing at checkout, check the routing table first. See Troubleshooting.

Dynamic routing

Turn on the Altruon Vault first

Dynamic routing only works on cards stored in the Altruon Vault. The Altruon Vault must be turned on for your account before Settings > Dynamic routing appears. Ask your Altruon account manager or write to support@altruon.io. See Turn on the Altruon Vault.

A card stored in the Altruon Vault is not tied to the acquirer that first charged it. Dynamic routing uses that: your own rules choose the acquirer of each card payment, from what is known about the card and the payment, and a declined card can be tried again on another acquirer.

Settings > Dynamic routing is a rule engine with five tabs:

TabWhat you do there
OverviewTurn Dynamic routing on or off, see the published rules, and check which acquirers the rules can use
RulesBuild the rules of each payment type in a visual workflow, save a draft and publish it
TestRun sample payments through any version of the rules. Nothing is saved and no payment is made
HistorySee every published version, edit a copy of one, or use it again
RetryManage the retry profiles that declined renewals use

Payment types

Each payment type has its own workflow, chosen at the top of the Rules tab. A customer-initiated transaction (CIT) is a payment the shopper makes at checkout. A merchant-initiated transaction (MIT) is a charge you make on a saved card, without the shopper.

Payment typeWhat it coversWhen it has no rules of its own
Checkout payments (CIT subscription)A shopper pays for a subscription, or saves a card for a trial, at checkoutAlways on. Every account starts here
Checkout payments (CIT one-time)A shopper pays a basket once at checkoutUses the subscription checkout rules, and cards are saved in your account's own vault
Recurring (MIT)Renewals of cards saved in the Altruon VaultRenewals keep today's behavior: the acquirer that collected the card

Turn on Own rules on the one-time or recurring payment type to give it its own workflow. Only card payments run these workflows. Other payment methods keep using Settings > Payment Gateways > Routing.

How rules are read

A workflow in the Rules tab
Trigger
Checkout payments (CIT subscription)
  1. 1
    Large EUR payments
    Currency is EUR and Amount is at least 50000
    Authorize payment
    Adyen
    Declined → Checkout.com
  2. 2
    US debit cards
    Card issuer country is US and Card type is debit
    Authorize payment
    Stripe
  3. 3
    Compare in GBP
    Currency is GBP
    Split traffic
    Adyen70%Checkout.com30%
  4. Else
    All other conditions
    Always last
    Authorize payment
    Checkout.com
Rules are checked from top to bottom, and the first match decides. A payment that matches no rule goes to All other conditions.

A rule has a name, one or more conditions, and a Then that says where a matching payment is charged.

  • Conditions. Each condition compares one fact of the payment with a value, for example Currency equals EUR. With several conditions, choose All (every condition must hold) or Any (one is enough).
  • Priority. Rules are checked from top to bottom, and the first match decides. Move a rule with Top, Up, Down and Bottom in its panel, or drag it on the canvas.
  • All other conditions (Otherwise). Always last. It catches every payment that matches no rule. With no rules at all, it reads Every payment.

The facts a condition can check:

FactWhat it holdsKnown
Currency3-letter ISO code, for example EURFrom the start of the payment
AmountIn minor units of the currency: 1999 is 19.99From the start of the payment
Payment methodThe method the shopper pays withFrom the start of the payment
Card brandVisa, Mastercard, American Express, Discover, Diners Club, JCB, UnionPay, Maestro, Elo, Hipercard or Cartes BancairesOnce the shopper submits the card
Card BINThe first 6 to 8 digits, single BINs or ranges such as 510000-519999Once the shopper submits the card
Card typecredit, debit or prepaidOnce the shopper submits the card
Card issuer countryCountry of the bank that issued the card, 2-letter ISO codeOnce the shopper submits the card
Customer countryThe shopper's billing country, 2-letter ISO code. Not the card's countryOnce the shopper submits the payment. Not for renewals
Card's original gatewayThe acquirer that first collected the cardRenewals only

The comparisons depend on the fact: equals, does not equal, is one of, is none of, is greater than, is at least, is less than, is at most, is between, BIN is in, starts with, is known and is not known. A rule on a fact that a payment type never knows would never match, so the editor offers only the facts that payment type can use.

What a rule does

The Then of a rule is one of:

  • One gateway. Every matching payment is charged on that acquirer.
  • Split traffic. Matching payments are shared between acquirers by percentage, for example 70% and 30%. The shares must add up to 100%. A checkout keeps the same share for the same session, and a renewal keeps the same share for the same subscription, so each subscription is charged on the same acquirer every cycle.

On Checkout payments (CIT one-time), each acquirer step also chooses where a card is saved when the shopper ticks Save my card for faster checkout:

Save the card inWhat happens
Site defaultThe Altruon Vault when the checkout captures cards there, otherwise the acquirer's token
Altruon vaultThe card can later be charged on any acquirer
Gateway tokenKept by this acquirer only. Nothing is saved if it cannot keep cards
Never saveCards are charged once and never kept, even when the shopper asks

Split shares save cards in your account's own vault. Use a single gateway or a cascade step to choose another place.

Each rule also shows two chips, Token and 3DS, with the network token and 3D Secure strategies saved under Settings > Vault. They are shown for information and are changed on the Vault page, not per rule. Renewals have no 3DS chip: there is no shopper to authenticate.

Cascading

A cascade tries the same card on another acquirer after a soft decline, without asking the shopper for anything. Every acquirer step in the workflow has two outcomes: Approved ends the payment, and Declined either ends it or cascades.

A cascade on a checkout payment
  1. Attempt 1
    Adyen
    Chosen by the rule.
  2. Soft decline
  3. Attempt 2
    Checkout.com
    Same card, same payment.
  4. Approved
  5. Payment approved
Gateways tried for one payment: Adyen, then Checkout.com.

To add one, open an acquirer step on the canvas and turn on Cascade under Declined. Choose the acquirer in Try the same card on, then which declines cascade:

  • Recommended reasons. The decline codes that another acquirer often approves: do not honor, issuer unavailable and processing errors. This is the default.
  • Selected reasons. Only the codes you tick in the acquirer's list. The list is grouped into Retry-friendly, Card / funds and Hard declines, and it can be searched. Ticking a hard decline shows a warning: card networks can charge fees for retrying a lost, stolen, fraudulent, invalid or expired card.

A cascade step can cascade again. Each step must try an acquirer not tried before for that payment, and the editor shows how many acquirers one payment may try (three unless Altruon sets another limit).

What also applies:

  • Timeouts are never cascaded.
  • At checkout, hard declines are not cascaded. A decline after 3D Secure is retried when the shopper returns to the checkout page.
  • Google Pay cascades only to an acquirer with Google Pay turned on.
  • A renewal moves to another acquirer only if that acquirer is enabled for renewals and the card can be charged there without the shopper, which needs a network transaction id.
  • Cascading may not be available on your account yet. Write to support@altruon.io to have it turned on.

Retry of declined renewals

On Recurring (MIT), a renewal that still ends declined after its last cascade goes to the workflow's retry, one setting for every renewal rule.

A renewal that ends declined
  1. Attempt 1
    Stripe
    Chosen by the rule.
  2. Soft decline
  3. Attempt 2
    Adyen
    Cascade on the same card.
  4. Declined
  5. Retry
    Basic retry
    3 retries, 1, 3 and 7 days later.

Click Set up retry above the canvas, then choose:

  • Retry profile. A Basic profile retries after a fixed number of days you choose. A Smart profile lets Altruon predict the best time for each retry, and needs Smart retry turned on for your account. Profiles are created and edited in the Retry tab, with what happens After the last retry fails.
  • Retry on gateway. Card's original gateway (as today), or another acquirer. A card that cannot be charged on the one you choose (no network transaction id, or the acquirer is not enabled for renewals) is retried on its original acquirer.

With retry off, declined renewals use your account's retry settings on the card's original acquirer. See Retries and dunning.

Set up Dynamic routing

  • The Altruon Vault turned onSee Turn on the Altruon Vault.
  • An administrator accountOnly administrators can open Settings > Dynamic routing and change raw card data.
  • Raw card data allowed by your acquirersEach acquirer the rules use must accept full card numbers from Altruon on your credentials. Today the rules can send cards to Adyen, Stripe and Checkout.com.
  • A card routing entry per currencyA card row in the routing table still decides whether cards are offered in that currency.

Turn on raw card data for each acquirer

In Settings > Payment Gateways, open the acquirer and turn on Raw card data. Tick that the acquirer has confirmed raw card data is enabled for these credentials, then click Turn on.

Altruon cannot check this with the acquirer. If raw card data is not enabled there, card payments sent to that acquirer are declined.

Check the acquirers the rules can use

Open Settings > Dynamic routing. On Overview, Gateways the rules can use shows Yes for each acquirer that is ready, or the reason it is not: Inactive, Not supported yet or Raw card data is off.

Build the rules

Open Rules. Use Start from to begin with a template: One gateway for everything, 70/30 split between two gateways, or Example: rules by currency and amount. Pick a payment type, click Add rule, then click a rule to edit its conditions, or an acquirer to change where it charges and what happens on a decline.

Save the draft

Click Save draft. The editor lists anything to finish first, such as a rule without a gateway or a split that does not add up to 100%. Click a problem to see it in the workflow.

Test it

Open Test. In Rules to test, choose the rules in the editor, the saved draft or a published version, and optionally one to Compare with.

  • Many payments describes the payments you expect (payment type, brands, amounts) and shows where the rules would send them and what would change.
  • One payment follows a single payment through the rules, step by step.

Move Soft decline rate above 0% to see your cascades at work.

Publish

Click Publish…, write a Change note (required), and publish. The draft becomes the next version, and the previous one stays in History.

Turn Dynamic routing on

On Overview, turn the switch on and confirm. Card payments now go where the published version says. Once it is on, each new version applies as soon as you publish it.

Dynamic routing and routing entries

While Dynamic routing is on:

  • Your rules choose the acquirer of each card payment. The card rows of the routing table no longer decide the acquirer, and the Routing tab says so.
  • A card row still decides whether cards are offered in its currency.
  • Other payment methods keep the routing table.
  • A card row on an acquirer that collects the card itself keeps its acquirer, because the card cannot be sent to another one. Card routing in Payment gateways, on Overview, marks each card row as Follow your rules or Charged on that acquirer. To route those payments with your rules, point the card row at an acquirer with raw card data turned on.

Turning Dynamic routing off takes effect straight away: every payment uses the routing table again. Your rules and their history are kept, and you can turn it back on at any time.

Versions

Every publish creates a version, with who published it, when, and its change note. In History:

  • View shows the rules of a version.
  • Edit a copy loads a version into the editor, to change and publish as a new version.
  • Use again publishes a copy of an older version as a new version. Nothing in history is changed.