HTechPay
Home / Payment Gateway / Smart routing

Send every payment where it is most likely to succeed

Approval rates differ between acquirers by card type, issuing country and even time of day. Smart routing lets you act on that, with rules your payments team owns and engineering doesn't have to redeploy.

Rules you can read

A routing rule has three parts: a condition, an ordered list of routes, and optional behaviour such as a traffic split. Rules are evaluated from top to bottom, and the first match wins. Anything that doesn't match falls through to your default route.

Edit rules in the dashboard's visual editor or as configuration through the API. Every change is versioned, needs approval from a second person if you turn that on, and can be rolled back in one click.

rules:
  - name: high-value-uk
    when: currency == "GBP" and amount >= 50000
    route: [acquirer_a]
    three_ds: always
  - name: eu-cards-by-performance
    when: region == "EEA" and method == "card"
    route: best_approval_rate(acquirer_b, acquirer_c)
  - name: amex
    when: scheme == "amex"
    route: [psp_amex, acquirer_b]
default: [acquirer_a, acquirer_b]
health:
  skip_if: error_rate > 5% over 60s

What you can route on

Any attribute of the payment, the customer or the provider's live state.

AttributeExamplesTypical use
Card detailsScheme, card type (debit, credit, prepaid, commercial), BIN range, issuing countrySend domestic cards to a domestic acquirer for better approval and lower interchange
TransactionAmount, currency, customer-initiated or merchant-initiated, recurring flagKeep subscriptions on the acquirer that holds the original mandate
Customer and channelCountry, device channel, your own metadata (such as customer tier or product line)Route your marketplace's high-risk categories to a specialist acquirer
CostYour negotiated fees per providerUse the lowest-cost route when approval rates are equal
Live performanceApproval rate, error rate and latency per provider, over rolling windowsShift traffic away from a provider that is degrading
TimeTime of day, day of week, date rangesAvoid a provider's scheduled maintenance window

Routing strategies

Priority with failover

An ordered list of providers. If the first is unhealthy or fails with a recoverable error, the next one takes the payment.

Traffic splits

Send a fixed share of matching payments to each provider. Use it to test a new acquirer on 5% of traffic before moving more.

Performance-based

Choose the provider with the best recent approval rate for similar payments, with guardrails so one bad hour doesn't swing everything.

Cost-aware

When approval rates are close, prefer the cheaper route. You set the threshold, so revenue always comes first.

Sticky routing

Keep recurring payments and follow-on captures with the provider that processed the original transaction, where scheme rules or mandates require it.

Health-aware

Every route is monitored for error rates and latency. Unhealthy routes are skipped automatically and brought back gradually when they recover.

Safe to change on a Friday

Configuration changes are powerful, so they come with guardrails.

  • Simulate before publishing. Replay the last 30 days of your payments against a draft rule set and see how the routes would change.
  • Four-eyes approval. Require a second approver for changes to live rules.
  • Versioned and reversible. Every published version is kept. Roll back instantly.
  • Full audit trail. Who changed what, when and why, exportable for audits.
  • Scoped permissions. Let your payments team edit rules without access to API keys or card data.

Routing questions

How fast is the routing decision?

Rules are evaluated in memory, in a few milliseconds, which is negligible next to the time an acquirer takes to authorise. We publish measured latency in your service reports.

Do I need contracts with several acquirers?

To route between acquirers, yes: you hold the merchant agreements, and HTechPay connects to them. If you only have one today, you still benefit from tokenisation, retries on that acquirer, and a ready path to add a second.

Can routing hurt my approval rates?

Routing to a new provider can temporarily lower approvals while issuers learn a new merchant identity. That's why we recommend traffic splits and simulation first, and why performance-based routing has guardrails.

What happens to refunds and captures after routing?

Follow-on operations automatically go to the provider that processed the original payment. You call one API; HTechPay keeps track.

See your own payment flows on HTechPay Gateway

Bring a month of decline data. We will show you where routing and retries recover revenue, and what it takes to switch.

Review mode. Highlighted text needs confirmation from H Tech Pay Solutions before publication. Hover a highlight to see what to check.