Payinference
Routing

Payment optimization

Payment optimization is choosing the best action for every payment before it is sent. Route to the healthiest, most cost-effective provider, fail over when a provider degrades, or fall back to your default route. Each choice is decided per payment from current health, cost and policy signals instead of a static default.

The problem

Static routing can't see a degrading provider

Most stacks route every payment down one hardcoded path. When that provider degrades, the first signal is your own decline rate; when another route would cost less, nothing notices. Routing logic buried in checkout code has no view of provider health, cost or policy, and it keeps no record of why a path was chosen.

How it works

One call, one instruction, before authorization

  1. 01
    Call the Decision API first
    Before authorization, your backend sends POST /v1/decision with safe payment context and the providers available to you.
  2. 02
    Routes are scored from cached signals
    Payinference scores each route from cached provider health, expected cost and your routing policy. It is pure computation with no PSP call, targeting under 50 ms at p95 with typical decisions around 1 ms.
  3. 03
    You execute the instruction
    The API returns route, use default route or failover with reason codes and route scores. Your own stack carries it out, and Payinference never touches the money.
  4. 04
    Outcomes feed the next decision
    Report the result to POST /v1/outcomes and route scoring learns from what actually happened.
FAQ

Frequently asked questions

Common questions about payment optimization with Payinference.

See all questions