MasonXPay
Category guide

Open-source payment orchestration: what the category means and when you need it.

Payment orchestration sits between checkout and multiple provider accounts: route policies, capability checks, bounded fallback, durable payment state, and the operations surface around them. Open source changes the trust model — you can read the code that decides where your payment traffic goes.

Search intent

Understand the payment orchestration category and evaluate open-source options against SaaS orchestration vendors.

User job

Decide whether payment traffic needs an orchestration layer at all, and if so, whether open source is the right sourcing model for it.

Useful artifact

Orchestration capability checklist and an open-source evaluation table.

Direct answer

Orchestration controls the payment path. Open source lets you inspect the controller.

Orchestration earns its name when it owns the payment path: explicit route policies across multiple PSP accounts, capability checks before provider calls, and bounded fallback on soft failures.

A single-PSP integration is not orchestration, and neither is a thin multi-PSP API wrapper without durable state and operations tooling.

Open source matters in this category because the orchestration layer touches money state: you can audit routing logic, idempotency handling, and webhook verification instead of trusting a vendor description.

Open source also changes exit economics — your payment state lives in your Postgres, under a license that survives vendor pricing changes.

The trade is operational: you run the layer (or pay a flat fee for someone to run your instance) instead of paying per-transaction orchestration fees.

Routing flow

The five capabilities that make a layer “orchestration” rather than a wrapper.

01

Policy-driven routing

An ordered provider-account path selected by published rules over the payment context — not hardcoded if/else in checkout code.

02

Capability checks

Accounts that cannot support the currency, country, method, or token reference are skipped before any provider call is made.

03

Bounded fallback and retry

Soft failures move to the next eligible account under explicit limits; hard declines stop. Every attempt is recorded.

04

Durable financial state

Payments, attempts, and refunds live in transactional tables with idempotency checks, so retries and concurrent workers stay safe.

05

Day-two operations

Webhook delivery with replay, payment search, route changes without redeploys, and metrics that show what the router actually did.

Route policy checklist

Use this checklist to evaluate any open-source orchestration project.

Stars are not an evaluation. What matters is whether the financial core is inspectable, the state model is durable, and the project tells you honestly what it does not do.

Read the state model first

Look for transactional payment tables and idempotency on funds-moving actions. If state lives in a queue or cache, walk away.

Check where card data flows

The project should keep PANs with PSP tokenization and store references only. Anything else expands your compliance scope.

Verify webhook security

Signed payloads, signature verification on both directions, and delivery replay are table stakes for payment operations.

Test the simulator story

A deterministic provider simulator means you can exercise declines, timeouts, and refunds in CI without touching a PSP.

Look for honest boundaries

Good projects document what they do not do — for example, cross-PSP token portability requires a vault or network tokens, not optimism.

Evaluate the operating cost

Compare per-transaction orchestration fees against infrastructure plus a flat managed plan; the crossover usually arrives early.

Fallback decision table

Failure signals and what a real orchestration layer does about them.

SignalRoute actionStop condition
Primary PSP degradesPolicy moves eligible traffic to the next account; ineligible traffic fails fast with a clear decline.Stop when no eligible account remains; surface the outage in operations, not in silent retries.
Provider returns ambiguous timeoutRecord the attempt, reconcile against the provider before any second submission of the same charge.Never blind-retry a funds-moving call without an idempotent state check.
Route policy needs to change at 2amEdit and publish the policy from the dashboard; the change is data, not a code deployment.Draft edits must not affect live routing until explicitly published.
Webhook consumer falls behindDeliveries retry on schedule; operators replay failures after the consumer recovers.Alert when the backlog grows instead of letting deliveries expire quietly.
MasonXPay mapping

Where this fits in a payment orchestration system.

MasonXPay uses routing, provider adapters, durable payment state, and operations tooling to keep the payment path inspectable. It is not a card network, acquirer, or replacement for PSP acquiring.

Routing and capability engine

MasonXPay routes across Stripe, Square, Braintree, Mollie, and the Mason Simulator with published route policies, capability checks, and outcome-aware retry.

Financial core you can read

Postgres is the source of truth; Kafka, Redis, and read models stay out of the authoritative payment-state path by design, and the code enforcing that is public.

Published capacity proof

The repo includes a reproducible k6 benchmark: ~190 charges/s on a Postgres-only 2-vCPU footprint and ~250 charges/s with the Redis + Kafka layer, with bottleneck analysis.

Billing inside the same surface

Customers, subscriptions, invoices, and off-session attempts live next to routing, so orchestration and billing operations share one state model.

Honest portability boundary

Provider-scoped tokens stay with their provider. Cross-PSP fallback of saved methods requires portable instruments — documented as a boundary, not hidden.

FAQ

Open-source payment orchestration questions

Do I need payment orchestration if I only use Stripe?

Usually not on day one. The trigger points are a second provider account, regional acquiring, provider-outage exposure, or routing rules that no longer fit in checkout code.

Is open-source orchestration production-ready?

Evaluate each project on its state model, idempotency guarantees, webhook security, and test story rather than the category label. The advantage of open source is that you can verify all four.

How does open source make money-path software safer?

It does not by itself — it makes the safety inspectable. You can read how idempotency keys are derived, how webhooks are verified, and where provider calls sit relative to database transactions.

What does MasonXPay cost?

Self-hosting is free under the MIT license. The managed plan is $99/month flat with no transaction-volume pricing; enterprise deployments are scoped individually.

Build payment routing you can explain.

Explore the provider catalog, inspect the open-source implementation, or compare route policy design against your current payment stack.