How Payment Orchestration Works: The Technical Architecture Explained
Payment orchestration routes transactions across multiple providers through a unified API. Here's the technical architecture behind routing logic, failover, and why merchants are migrating.
Payment orchestration platforms sit between a merchant's checkout and dozens of payment service providers, routing each transaction to the optimal processor in real time. Understanding how payment orchestration works requires looking past the marketing claims to the routing engine, the API abstraction layer, and the decision tree that determines where each payment lands. The technology solves a specific problem: as merchants expand internationally and add payment methods, managing direct integrations to Stripe, Adyen, Checkout.com, and regional acquirers becomes unmanageable.
What is payment orchestration?
Payment orchestration is middleware that connects a single merchant API to multiple payment service providers and acquirers. The platform ingests a payment request, applies routing rules based on transaction attributes—currency, card network, amount, customer location—and forwards the request to the selected PSP. If that provider declines or times out, the orchestrator can retry through a fallback provider without the customer resubmitting payment details. The merchant writes code once; the orchestration layer handles the complexity of maintaining connections to every processor.
This is distinct from a payment gateway, which typically connects to one acquirer or a small set of partners. Orchestration treats PSPs as modular, swappable infrastructure. A retailer might route Visa transactions under £100 to one processor for lower fees, send American Express through another for better approval rates, and fail over to a third if the primary is down. The routing logic lives in the orchestration platform, not in the merchant's codebase.
The routing engine and decision logic
Routing rules are the orchestration platform's core value. A basic implementation routes by currency or payment method: GBP transactions go to a UK acquirer, iDEAL payments to a Dutch processor. More sophisticated setups optimise for cost, using transaction fees and interchange data to select the cheapest provider for each payment type. High-volume merchants build rules around authorisation rates, sending transactions to the PSP statistically most likely to approve based on card BIN, issuer country, and historical performance.
The decision tree runs in milliseconds. When a customer submits payment, the platform evaluates attributes—card network, amount, billing country, whether the customer is returning or new—against the configured ruleset. Some orchestrators allow weighted scoring across multiple criteria; others use waterfall logic where the first matching rule wins. The selected PSP receives the tokenised card data and processes the transaction. If approved, the response flows back through the orchestration layer to the merchant. If declined, the platform can trigger a retry through an alternate provider, subject to network rules on duplicate authorisation attempts.
Merchants typically start with simple rules and add complexity as transaction volumes justify the effort. A company processing tens of millions annually might route based on real-time provider latency, avoiding a PSP whose API response time has spiked in the past hour. Others use machine learning models trained on historical approval data, though the marginal gain over well-tuned static rules is often smaller than vendors claim.
API abstraction and normalisation
Every payment processor has a different API schema, error taxonomy, and webhook structure. Stripe returns declined transactions with specific reason codes; another provider might use numeric codes or plain-text messages. Orchestration platforms normalise these responses into a unified format, so the merchant's application handles one set of status codes and error states regardless of which PSP processed the payment. This abstraction is what makes routing invisible to the customer experience.
The platform maintains adapters for each connected PSP, translating the merchant's standardised payment request into the provider's expected format and converting the response back. When a new processor is added, the merchant does not rewrite checkout logic—the orchestration vendor builds the adapter. This reduces integration effort from weeks per PSP to a configuration change. The trade-off is dependency: the merchant relies on the orchestration platform to maintain those adapters and support new payment methods as they emerge.
Tokenisation typically happens at the orchestration layer. The platform vaults card data, stores a token, and passes that token to whichever PSP processes the transaction. This means switching providers does not require re-tokenising saved cards, a significant advantage for subscription businesses. Some merchants still prefer PSP-native tokens for regulatory or contractual reasons, particularly when one provider handles the majority of volume.
Failover, retry logic, and network constraints
Failover is the most cited benefit of orchestration, but it operates within strict boundaries. Card network rules limit how many times a declined transaction can be retried, and some declines—insufficient funds, suspected fraud—should not be retried at all. Orchestration platforms categorise decline reasons and apply retry rules accordingly. A soft decline due to issuer timeout might retry immediately through a backup PSP; a hard decline for an expired card does not.
Latency is the constraint. If the primary PSP takes three seconds to respond with a decline, adding a failover attempt extends checkout time. Merchants must balance higher approval rates against the risk of cart abandonment from slow payments. Most orchestrators allow configuration of maximum retry attempts and timeout thresholds per rule. High-risk transactions—large amounts, first-time customers—might skip failover entirely to avoid triggering fraud filters with duplicate authorisation requests to different processors.
Cascading, where a transaction automatically retries through multiple PSPs in sequence, is technically possible but rarely used in consumer checkouts. The liability and network compliance risk outweigh the marginal approval lift. Instead, failover is commonly deployed as a redundancy measure: if the primary PSP is offline due to an outage, the orchestrator routes to a backup until service is restored. This requires maintaining active merchant accounts with multiple processors, which adds cost and compliance overhead.
Cost optimisation and fee arbitrage
Payment processing fees vary by provider, card network, and transaction attributes. A Mastercard payment from a UK-issued card processed by a European acquirer incurs different interchange than the same payment routed through a UK domestic processor. Orchestrators allow merchants to exploit these differences by routing transactions to the least expensive qualified provider. The savings are measurable at scale: a retailer processing £500 million annually might reduce total payment costs by 10 to 20 basis points through optimised routing, translating to millions in margin improvement.
Dynamic routing based on real-time fee data is still uncommon. Most merchants configure static rules using published interchange schedules and negotiated PSP rates. The challenge is that optimal routing for cost is often at odds with optimal routing for approval rates—the cheapest processor may not have the best relationship with the card issuer. Merchants end up balancing cost reduction against revenue loss from declined transactions, and that calculus varies by industry and margin structure.
Some orchestration platforms offer cost analytics, surfacing which PSPs are most expensive for specific transaction types. This is primarily a reporting feature; the merchant still configures the rules manually. The platforms that claim AI-driven cost optimisation are, in most cases, running static optimisation algorithms on historical data and rebranding it. Genuine machine learning applications in payment routing focus on fraud detection and approval uplift, not fee minimisation.
Implementation and migration considerations
Migrating to orchestration requires more than an API integration. The merchant must decide whether to vault payment data in the orchestration platform or continue using PSP-native tokens. Reconciliation and settlement workflows need adjustment, because funds now flow through multiple providers with different payout schedules. Fraud tooling—whether provided by the PSP or a third-party vendor—must integrate with the orchestration layer to score transactions before routing decisions are made.
Regulatory considerations vary by jurisdiction. Under PSD2 in Europe, strong customer authentication applies regardless of routing, but the liability shift for 3D Secure exemptions can differ by PSP. Merchants must ensure the orchestration platform passes authentication data correctly to all connected providers. PCI DSS compliance shifts: if the orchestrator handles card data, it must be PCI Level 1 certified, and the merchant's compliance scope changes depending on whether sensitive data touches their infrastructure.
The largest merchants build orchestration in-house, maintaining direct integrations to key PSPs and routing logic in proprietary code. The threshold where this makes economic sense is typically above £1 billion in annual payment volume. Below that, third-party orchestrators offer faster deployment and lower engineering cost, though the trade-off is less control over routing sophistication and data portability if the relationship ends.
Where orchestration creates genuine value
Orchestration delivers measurable impact in three scenarios: international expansion, where managing region-specific PSPs and payment methods is otherwise prohibitive; high-frequency retry environments, such as subscription renewals where failover can recover millions in failed recurring payments; and enterprises with legacy PSP contracts, where orchestration enables gradual migration to better pricing without a risky cutover. Outside these use cases, the improvement over a well-negotiated relationship with two or three PSPs is marginal. Payment orchestration is infrastructure, not a silver bullet—it works when the underlying economics and operational constraints make multi-provider routing necessary.
Sources & methodology
This article was fact-checked against the live web before publication. Key sources consulted:
Frequently asked questions
What is payment orchestration and how does it differ from a payment gateway?
Payment orchestration connects a merchant to multiple payment service providers through a single API, routing transactions based on configured rules. A payment gateway typically connects to one acquirer or a limited set of partners, while orchestration treats PSPs as modular infrastructure that can be selected per transaction based on cost, approval rates, or other criteria.
How does routing logic work in payment orchestration platforms?
Routing logic evaluates transaction attributes—card network, currency, amount, billing country—against configured rules to select the optimal PSP. Rules can optimise for cost, approval rates, or latency. The platform applies the ruleset in milliseconds, forwards the payment to the selected provider, and can retry through a fallback PSP if the first declines or times out.
Can payment orchestration improve transaction approval rates?
Yes, through intelligent routing to PSPs with better issuer relationships for specific card types or geographies, and through failover retry when a soft decline occurs. However, card network rules limit retries, and the approval lift varies by merchant category and transaction mix. The improvement is measurable but not guaranteed.
What are the main technical requirements for implementing payment orchestration?
Implementation requires API integration to the orchestration platform, decisions on tokenisation and data vaulting, reconciliation workflow adjustments for multi-provider settlement, and integration of fraud detection tools. PCI DSS compliance scope changes if the orchestrator handles card data, and PSD2 SCA requirements must be correctly passed to all connected PSPs.
How do merchants choose between building in-house orchestration or using a third-party platform?
Merchants processing over £1 billion annually often build in-house for greater control and customisation. Below that threshold, third-party platforms are typically faster and cheaper to deploy. The decision depends on engineering resources, transaction complexity, and whether routing sophistication justifies the build cost versus platform fees.