Blue Coral Labs
  1. Home
  2. Insights
  3. Payments

The five layers of a payment architecture, and where most stacks are thin

Most payment problems that reach the boardroom are not payment problems. They are ledger and reconciliation problems that showed up at the checkout.

PaymentsBy Blue Coral Labs3 min read

Short answer A payment architecture has five layers: acceptance, orchestration, risk, ledger and reconciliation. Most teams invest in the first two because customers see them. Most losses, audit findings and failed migrations come from the last two. Design the ledger and reconciliation first, then the checkout.

1. Acceptance

The part everyone can see: checkout, payment methods, wallets, terminals, account-to-account payments. The questions here are commercial. Which methods do your customers expect in each market? What does each cost? What happens on a decline?

Thin spot: treating all declines the same. A soft decline, an authentication failure and a hard decline each need a different next step.

2. Orchestration

The logic that decides which provider or acquirer handles which payment, and what to do when one fails. It can be a product you buy, a feature of your main PSP, or code you write.

Questions to ask

  • If the primary provider is down for an hour, what happens to revenue?
  • Can you route by market, card type or amount, and do you measure the effect?
  • Are tokens portable, or does your vault tie you to one provider?

Thin spot: adding a second PSP without a way to compare authorisation rates and total cost between them. Then nobody knows if routing helps.

3. Risk

Fraud screening, strong customer authentication, sanctions and transaction monitoring, chargeback handling. For regulated firms, this layer also carries obligations under PSD2 and AML rules.

Thin spot: risk rules that live in a vendor's dashboard with no version history. When performance changes, nobody can say which rule changed.

4. Ledger

The system of record for who is owed what: customer balances, merchant payables, fees, reserves, refunds. If you are a platform or a marketplace, this is your core, even if nobody calls it that.

Questions to ask

  • Is every movement a balanced, immutable entry, or do you update balances in place?
  • Can you rebuild any balance as of any past date?
  • Are fees, FX and refunds separate entries, or netted into one number?

Thin spot: using the PSP's reports as the ledger. That works with one provider and one currency. It breaks on the day you add a second.

5. Reconciliation

Matching the ledger to the money that actually arrived: settlement files, bank statements, scheme fees. This is where missing funds, duplicate payouts and unexplained differences are found, or not found.

Questions to ask

  • What percentage of transactions match automatically?
  • How old is the oldest unmatched item, and who owns it?
  • Do you reconcile fees, or only principal?

Thin spot: reconciliation done monthly in a spreadsheet by one person. It is always that person's last week.

The order to design in

It is tempting to design top-down, from the checkout. We design in the opposite order:

  1. Ledger: what is the truth?
  2. Reconciliation: how do we prove it?
  3. Risk: what must never happen?
  4. Orchestration: how do payments get to the right place?
  5. Acceptance: what does the customer see?

A checkout can be changed in a sprint. A ledger that updates balances in place takes a year to replace.

Where Blue Coral Labs fits

We design payment architectures and build the layers that are usually thin: ledgers, reconciliation and the reporting that sits on top. If you are adding a provider, entering a market or preparing for a licence, tell us where the stack hurts.

About Blue Coral Labs

Blue Coral Labs B.V. is an Amsterdam firm that designs, builds and runs systems for payments, trade finance and AI. It operates its own products, vink and Karum, through its Product Studio.

Start a project

Keep reading

Systems that ship.
Advisory that delivers.

Tell us what you are building or fixing. We answer with a view on scope, not a brochure.