A rule picks a route, a retry tries a backup and a vault holds the card. Each processor still does the rest of the job.
Payment orchestration is payment middleware: one integration between checkout and several processors. Routing rules pick a processor for each payment by card country, currency, amount or BIN. A retry rule can resend a failed payment to a backup processor. A card vault keeps stored cards usable across processors. The processors still authorize, settle and carry the losses. Orchestration decides the route.
Is payment orchestration the same as payment middleware?
Mostly, yes. “Payment middleware” is a loose name for software that sits between a business’s systems and its payment providers. Orchestration is the version of it that holds several processor connections behind one API and decides, payment by payment, which one to use. A gateway that talks to one processor is middleware too, but it has nothing to route between. How gateways, payment service providers (PSPs) and orchestration layers split the work is covered in payment gateway vs PSP vs orchestration.
What an orchestration layer does
An orchestration layer usually bundles five parts:
- Connections. Pre-built links to gateways, processors and payment methods. Spreedly’s pricing page lists 150+ gateway connections, 60+ payment methods and 32+ fraud and risk solutions.
- A vault. A store that swaps card numbers for tokens, so the same stored card can be sent to different processors. Spreedly says its vault keeps credentials “portable and usable across gateways” and runs card updater services.
- Routing rules. Conditions that pick a processor for each payment (see the next section).
- Retries. A second attempt on a backup processor when the first one fails. Primer calls these fallbacks and says it reuses the 3-D Secure (3DS) data from the first attempt, so the customer does not authenticate twice. 3DS is the card networks’ protocol for authenticating the cardholder online.
- Reporting. One view of approval rates and volume across processors. Stripe’s Orchestration dashboard filters performance by currency, card brand, card country, card type and transaction type.
Payment routing rules: how two rule engines work
A routing rule has three parts: a condition, a route and a fallback. Stripe and Primer both document their rule builders in detail, and the details differ in ways that matter when rules are written.
| Stripe Orchestration | Primer Workflows | |
|---|---|---|
| Conditions documented | Amount (with a currency), BIN (first 6 or 8 digits), card country, card issuer, card type (credit, debit, prepaid), currency, metadata | Any field from the payment or an earlier block, including issuer country, card network, account funding type, product usage type and first digits from BIN data |
| Operators | The setup guide’s example: card country equal to United Kingdom | Equal, not equal, greater or less than or equal, one of, not one of, between, contains, does not contain, is empty, is not empty |
| Evaluation order | Left to right; the first matching condition’s action applies | Conditions in one set must all match (AND); sets are checked top to bottom, ending with “all other conditions” |
| Fallback | One main and one retry processor per action, plus a default pair when nothing matches | A fallback to a chosen backup processor inside the workflow |
| Testing | Rules are built and activated in a sandbox first; one active rule set per environment | No-code builder; A/B tests across processors or 3DS strategies |
| No rules active | Payments go to Stripe | Card payments need a workflow that sends them to a connected processor |
Two warnings from the documentation are worth copying into any rule review. Primer says the most specific routes go on top: a route for “Currency = EUR” placed above “Currency = EUR and Risk = high” means the second is never evaluated. Primer also warns against hard-blocking payments on BIN data alone, because BIN ranges change and some attributes come back as UNKNOWN.
Example: a routing-rules table
The rule set below is an illustration for a US merchant with three processor contracts. The processor names are placeholders, not recommendations. Rules run in order, and the first match wins.
| Order | Condition | Main processor | Retry processor | Why |
|---|---|---|---|---|
| 1 | Currency = EUR and card country is in the EU | Processor B (local acquiring in the EU) | Processor A | Domestic acquiring for EU-issued cards |
| 2 | Card type = prepaid and amount under $25 | Processor A | None | Keep a high-risk segment on one processor with one fraud setup |
| 3 | Metadata: order_type = subscription_renewal | Processor A | Processor C | Renewals stay where the cards were first stored |
| 4 | Card type = debit and card country = US | Processor C | Processor A | A contract priced for US debit |
| 5 | Everything else | Processor A | Processor B | Default route |
Rule 1 must sit above any broader currency rule. Rule 2 has no retry on purpose: a second attempt on a payment the merchant considers risky adds cost and fraud exposure. Each condition in the table is one that Stripe’s or Primer’s documentation lists.
Worked example: what a retry can recover
The numbers below are assumptions chosen to show the arithmetic. They are not provider figures.
| Step | Assumption | Result |
|---|---|---|
| Card payment attempts in a month | 100,000 | 100,000 |
| Declined or failed on the main processor | 8% | 8,000 |
| Eligible for a cross-processor retry | 50% of failures | 4,000 |
| Approved on the retry processor | 25% of retries | 1,000 |
| Approval rate before and after | 92,000 / 100,000 → 93,000 / 100,000 | +1 percentage point |
| Recovered sales at a $60 average order | 1,000 × $60 | $60,000 |
The “eligible” line is where real results move most. Stripe says it does not retry a payment on the retry processor if 3DS was attempted on the first try and failed. It also skips the retry when the payment uses a feature the retry processor does not support. Replace each assumption with your own decline data before trusting the total, and count the second processor’s fees on every retried payment.
Payment orchestration or vault?
A vault stores cards and lets a business send them to more than one processor. Orchestration adds the decision about where each payment goes. Many teams start with the first and add the second later.
| Vault only | Full orchestration | |
|---|---|---|
| What it stores | Card data and tokens, outside any one processor | The same, usually in the provider’s own vault |
| Who picks the processor | The merchant’s own code | Rules in the orchestration layer |
| Retries on another processor | Built by the merchant | A rule or fallback setting |
| Example from vendor documentation | Basis Theory’s proxy swaps tokens for card data and forwards the request to any processor API that accepts card data | Stripe Orchestration, Primer Workflows, Spreedly’s routing tier |
| Published starting price | Spreedly Independent Vault: from $750 per month | Spreedly lists its Performance Optimization tier, which includes PSP-agnostic routing, without a price |
A vault-only setup still has to meet each processor’s terms. Basis Theory’s documentation says some processors restrict incoming IP addresses and many ask for proof of PCI compliance, its attestation, before they accept raw card data through a proxy. The two layers can also be split: Hyperswitch documents a self-hosted orchestration layer that sends payments through an external vault such as VGS or TokenEx.
A vault on its own makes sense when the business has one or two processors and wants to own its card data before choosing anything else. Orchestration makes sense when there are several processors, rules that change often, or a need for retries without new code.
Stripe Orchestration: what is in scope
Stripe is a processor that also routes payments to other processors. Its documentation, read November 9, 2026, describes the product as a private preview with these limits:
- Covered: Payments, Billing and Dashboard payments. Payments created through Billing, Checkout, Payment Links or the Dashboard can follow the rules once a Stripe representative configures it.
- Not covered: non-card payments, Link, Capital, Connect, Terminal and Organizations, plus disputes and settlement activity, which stay in the third-party processor’s dashboard. Link payments always process on Stripe.
- Refunds: for payments routed elsewhere, the third-party processor administers the refund.
- 3DS: for routed 3DS payments, the merchant must give Stripe the acquirer BIN of the processor it routes to.
- Radar blocks: if Stripe is the main processor and Radar blocks a payment, Orchestration treats it as a decline and retries it on the retry processor.
- Error protection: an optional setting sends a payment to Stripe instead of returning an error when the chosen processor does not support a feature the payment needs.
The rule that does not change: a third-party processor “continues to act as the processor” for payments routed to it, and fees and liability for losses stay under that processor’s terms.
Where orchestration fits next to embedded payments
The two solve different problems. Embedded payments let a platform offer payments to its own users. Orchestration lets one merchant spread its own payments across processors. Check support before combining them: Stripe lists Connect as outside Orchestration, and its retry documentation says a payment using Connect’s on_behalf_of parameter is not retried on another processor.
Security and card-data scope
The Payment Card Industry Data Security Standard (PCI DSS) is intended for all entities involved in card processing, including merchants, processors, acquirers, issuers and service providers. An orchestration provider or vault that stores cards holds card data for its customers. Spreedly describes its vault as “PCI-1 compliant”. Ask any provider for its attestation of compliance.
The PCI Security Standards Council published PCI DSS v4.0.1 in June 2024. Of the 64 new requirements in v4.0, 51 were future-dated and took effect on March 31, 2025. A vault can shrink how much card data a merchant’s own systems touch. It does not end the merchant’s PCI DSS obligations. Scope is set with the merchant’s acquirer and assessor, and this article is not compliance advice.
Questions to ask a provider
- Which processors and payment methods are connected today, and which are on request?
- Which fields can routing rules use, in what order are they evaluated, and who can change them without a code release?
- Which declines are retried on another processor, and which are not?
- Do retries reuse 3DS data, and which processors accept it?
- Can we export stored cards and network tokens if we leave, in what format and at what cost?
- How are refunds, disputes and settlement handled for each connected processor?
- Which fees are fixed and which scale with volume?
For a side-by-side review of providers’ published features, see payment orchestration platforms. More in our payments guides.




