Guide · 9 May 2026

Build, buy, or rent: a decision framework for payment infrastructure.

Three options, six criteria, and a scoring sheet you can fill in before the next vendor call.

Topics
StablePayPaymentsDecision frameworkGuide
On this page

Key takeaways

  • Building, buying software, and renting a service are three different bets, not three price points.
  • Score them against six criteria, weighted by what your business cannot afford to lose.
  • Renting is right more often than vendors of self-hosted software admit.
  • The wrong choice is usually made by defaulting to whoever asked first.

Every payments conversation eventually reaches the same fork: do we build it, buy software and run it ourselves, or rent a hosted service? Teams tend to answer by default — the engineer who volunteers builds, the vendor who called first gets rented. This guide replaces the default with a framework.

Three options, three different bets

OptionWhat you ownWhat you depend onYou are betting that
BuildEverything: code, keys, roadmapYour own team's capacityPayments are core enough to justify permanent engineering
Buy softwareThe deployment, keys, and dataThe vendor's software quality and updatesRunning it is cheaper than renting it
Rent a serviceYour integration onlyThe vendor's platform and policiesThe vendor stays reliable, affordable, and aligned

Software vs service

Buying software means you deploy and operate it. Renting a service means the vendor operates it. The line between them is who holds the keys and who is on call.

Six criteria

  1. 01

    Control

    Who holds keys, chooses networks, and decides when to upgrade? How much does that matter to your customers, counterparties, or counsel?

  2. 02

    Time to first payment

    Weeks for a service, weeks for software, months for a build. Measure against your real launch date.

  3. 03

    Operating burden

    Who is on call, who patches, who reconciles? Burden does not disappear; it moves.

  4. 04

    Total cost

    Fees, licences, engineering time, and the reconciliation hours nobody budgets for.

  5. 05

    Flexibility

    Can you add a network, change a flow, or export your data without asking permission?

  6. 06

    Exit risk

    If the vendor changed terms or disappeared, how painful is leaving?

How each option scores

The ratings below are general tendencies, not verdicts. Your context can flip any row.

CriterionBuildBuy softwareRent a service
ControlHighestHigh — you hold keys and dataLowest
Time to first paymentSlowestFastFastest
Operating burdenHighestMediumLowest
Cost at low volumeHighestMediumLowest
Cost at high volumeMediumLower — no per-transaction marginHighest
FlexibilityHighestHigh within supported networksBound to vendor roadmap
Exit riskNoneLow — you keep the deploymentHighest

A scoring sheet

Weight each criterion from 1 to 5 by how much your business cannot afford to lose, then score each option from 1 to 5. Multiply, add, and compare. The exercise matters more than the number: it forces the team to say which criteria are non-negotiable.

Fill this in with your teamPlain text
Criterion              Weight  Build  Buy  Rent
Control                  _      _      _    _
Time to first payment    _      _      _    _
Operating burden         _      _      _    _
Total cost (2 years)     _      _      _    _
Flexibility              _      _      _    _
Exit risk                _      _      _    _
---------------------------------------------
Weighted total                  _      _    _

When each option is right

Rent when

  • Volume is low and payments are not your differentiator
  • You need card acceptance, chargebacks, or a vendor's compliance posture
  • Nobody wants to be the payment on-call
  • Speed to market outweighs control

Buy and self-host when

  • Reconciliation hours already exceed the vendor's fee
  • Counterparties ask where keys live or who can move funds
  • A vendor change would move your roadmap
  • You want to inspect, query, and own the payment record

Build is right in a narrower set of cases: payments are the product itself, you have the team to maintain it for years, and no existing software fits your model. Most companies overestimate how often that is true.

The costs people forget

  • Reconciliation labour. Every hour finance spends stitching records is a cost of the option you chose.
  • Incident cost. A silent failure on a weekend has a price, even if it never appears on an invoice.
  • Upgrade discipline. Self-hosted software only helps if patch releases are actually deployed.
  • Switching cost. Adapters written to a vendor's shape have to be rewritten if you leave.

For reference, StablePay licences are one-time purchases that start at $4,800 for a single production environment and rise with the number of environments and operators. Pricing and terms live on the product page; treat any figure here as a pointer, not a quote.

Before you decide

  • Write down who is on call for payments at 2am under each option.
  • Estimate your reconciliation hours per month today.
  • Ask each vendor what happens to your data and keys if they shut down.
  • Get counsel's view on which model your regulatory obligations allow.
  • Set a review date to revisit the decision as volume changes.

A worked example, with hypothetical numbers

Numbers make trade-offs concrete, but they can also mislead. The example below is invented to show the method, not to benchmark anything. Replace every value with your own.

LineRentBuy and self-hostBuild
Upfront costLowLicence plus integrationHigh — engineering months
Monthly run costFees proportional to volumeInfrastructure plus operating timeInfrastructure plus a standing team
Reconciliation labourHighestLowerLower if designed well
Time to first paymentDays to weeksWeeksMonths
Crossover vs renting—Depends on volume; often within 12–24 months at meaningful volumeRarely, unless payments are core

The shape of the curves matters more than the numbers. Renting is cheap to start and grows with volume. Owning is expensive to start and flattens. Whether they cross inside your planning horizon is the question, and the answer is sensitive to volume, so test it.

Sensitivity: which assumption moves the answer most?

AssumptionIf it is wrong by 2×Effect on the decision
Monthly volumeVolume half or double the forecastMoves the crossover point the most
Reconciliation hours savedSavings half of what you assumedCan erase the advantage at low volume
Operating hoursTwice the on-call and patching timeRaises the self-hosted cost noticeably
Vendor fee changeFee risesStrengthens the case for owning

Anatomy of lock-in

Lock-in is not one thing. It is a set of dependencies, and different options create different ones. Naming them lets you decide which you will accept.

Lock-in typeRentBuy softwareBuild
DataYour history lives in their ledgerIn your databaseIn your database
Keys and fundsVendor-controlledYouYou
BehaviourChanges on their scheduleChanges when you upgradeYou decide
CodeAdapters shaped to their APIIntegration shaped to the gateway's contractYour own code
KnowledgeIn their support teamPartly in vendor docs, partly in your runbooksIn your team's heads

Joel Spolsky's classic argument about not-invented-here [1] is often used to defend buying, but read closely it says something more precise: build the things that are your core competitive advantage, and buy the rest. That is a decision about differentiation, not about cost.

Hybrid approaches

The choice is not always binary. Several hybrids are worth considering.

  • Rent to start, own later. Launch on a hosted service to learn real volume, and design your integration behind a thin internal interface so a later move is a swap, not a rewrite.
  • Own the record, rent the edge. Keep the authoritative payment state in your own database while using a vendor for a specific rail, such as cards.
  • Own for one flow. Run a self-hosted gateway for the flows where control matters, such as treasury settlement, and a hosted processor for the rest.
Illustrative — a thin internal interface keeps the choice reversibleTypeScript
interface PaymentProvider {
  createIntent(input: { reference: string; amount: Money }): Promise<Intent>;
  getIntent(id: string): Promise<Intent>;
  // events are normalised into your own vocabulary at the edge
  onEvent(handler: (e: NormalisedPaymentEvent) => Promise<void>): void;
}

// Application code depends on PaymentProvider, never on a vendor SDK directly.

Write the decision down

Architecture decision records [2] are a lightweight way to capture why a choice was made, what alternatives were considered, and what would make you revisit it. Six months later, when someone asks why you chose this path, the record answers without an archaeology project.

Illustrative ADR skeletonPlain text
Title:        Payment infrastructure: self-hosted gateway
Status:       Accepted (revisit at 12 months or 2x volume)
Context:      Reconciliation costs X hours/month; counterparties ask where keys live.
Decision:     Deploy self-hosted gateway; keep a thin PaymentProvider interface.
Alternatives: Hosted processor (rejected: opaque ledger); build (rejected: not core).
Consequences: We operate the deployment; on-call rota; patch cadence owner named.
Revisit if:   Volume halves, vendor changes terms, or ops burden exceeds N hours/month.

This framework is engineering guidance, not financial, legal, or compliance advice.

References & further reading

  1. 1
    In Defense of Not-Invented-Here Syndrome — Joel Spolsky, Joel on Software
  2. 2
    Architectural Decision Records — ADR GitHub organisation
  3. 3
    Bliki: Strangler Fig Application — Martin Fowler, martinfowler.com
Found this useful? Share it

Get the next essay in your inbox

Practical writing on payments infrastructure, operations software, and shipping real systems. No spam, no sales sequence.

We only use your email to send the studio's writing. See the privacy policy.

About the authors

Product behaviour described here reflects what is implemented and tested; anything else is marked as planned. Code samples are illustrative.

All writing

Have a system like this to run?

Explore the catalog, or write down the problem and the constraints. We respond when the fit is real.

Free apps from the studio. Enter your email, get a private download link. Free for personal use.

Get them free

Have a product to sell? We review, list, and sell it for you — you keep 90% of every sale.

Apply to sell with us