Skip to content
Bitmason
Engineering

Build or buy billing: a decision framework for SaaS and fintech

What billing really includes, the hard parts that only show up after launch, when to buy a billing platform, when to build, why the answer is often both, and how to decide and switch without losing a single invoice.

9 min read

Billing looks like a simple feature until the first month of real invoices. A customer upgrades halfway through the month, a payment fails and is retried, a price changes for new customers but not for existing ones, a tax rule changes, and someone disputes a line on an invoice from three months ago. Each of those is a small piece of logic, and together they decide whether revenue arrives on time and whether finance trusts the numbers.

That is why the build-or-buy question for billing deserves more care than most. Get it wrong one way and the engineering team spends years maintaining a system that adds nothing to the product. Get it wrong the other way and the company is stuck with pricing it cannot change and data it cannot move. This post covers what billing really includes, the hard parts nobody estimates, and a way to decide.

Billing is more than invoices

Before comparing platforms or estimating a build, write down everything "billing" will have to do. The list is always longer than expected:

  • A catalogue of products, plans and prices, including old prices that existing customers still pay.
  • Subscriptions and their life cycle: trials, upgrades, downgrades, pauses, cancellations, renewals.
  • Usage collection and rating, for anything priced by consumption: requests, transactions, seats, kilowatt-hours.
  • Invoices, credit notes and adjustments.
  • Tax, with the rules of every country and customer type you sell to.
  • Payment collection: cards, bank transfers, wallets, and retries when a payment fails.
  • Dunning: reminders, grace periods and what happens to the service when a customer does not pay.
  • A customer portal for invoices, payment methods and plan changes.
  • Refunds, disputes and the trail behind them.
  • Exports to accounting, revenue reports and data for analytics.

Some products add their own layer on top. Utilities and energy software deal with meter readings that arrive late or get corrected. Fintech products deal with fee splits between parties, payouts and reconciliation with payment providers.

The hard parts that appear after launch

Most billing estimates cover the happy path. The cost is in the rules around it:

  • Money is exact. Amounts are stored in the smallest currency unit as integers or exact decimals, never as floating-point numbers, and every rounding rule is decided once and written down.
  • Proration. A mid-cycle upgrade, a seat added on the 17th, a downgrade that takes effect at renewal: each needs a rule, and customers will check the arithmetic.
  • Time. Billing periods, time zones, month lengths and the end of the year all produce edge cases. An invoice dated in the wrong period is an accounting problem, not a display bug.
  • Issued invoices do not change. Corrections are made with credit notes and new invoices. Many countries also require unbroken invoice numbering and specific content. In Uzbekistan, invoices to businesses go through the state electronic invoicing system, directly or through an authorised operator, with an electronic signature.
  • Prices are versioned. A price change applies from a date, to some customers and not others, and every past invoice must still be explainable with the price that applied at the time.
  • Usage is counted once. Usage events arrive late, out of order and sometimes twice. The same discipline as in any event-driven system applies: a stable identifier fixed at the source, and idempotent processing, so a retry never bills twice.
  • Bill runs can be repeated. When a meter reading is corrected or a pricing bug is found, the system must recalculate a period deterministically and show what changed.
  • Failed payments are normal. Retry timing, card updates, partial payments and what the product does while a customer is in arrears all need decisions, and they affect revenue more than most features.

None of this is exotic. All of it has to exist before billing can be trusted, whoever builds it.

What you are really trading off

The comparison is not licence fees against salaries. It is three things:

  • Time to revenue. A platform can bill real customers in weeks. A build usually takes much longer than the first estimate, because the hard parts above are discovered along the way.
  • Who carries the change. Tax rules, payment methods, regulations and pricing models keep changing. With a platform, much of that is the vendor's work. With a build, all of it is yours, for as long as the system runs.
  • Control. A build fits your rules exactly and keeps the data where you decide. A platform shapes your pricing to what it supports and holds your data in its format.

Building because platforms look expensive is the weakest reason of all. Vendor fees are visible on an invoice; the cost of an internal billing system shows up as features that were not built.

When buying is the better choice

  • Billing is not what makes the product different.
  • Pricing follows common patterns: subscriptions, tiers, seats, simple usage bands.
  • The product needs to charge customers soon.
  • The team is small and its time is better spent on the product.
  • Standard integrations matter: payment providers, accounting, tax calculation, CRM.

Most early SaaS and many fintech products fit here. A platform also brings controls an auditor will ask about, such as roles, logs and approval flows, without building them.

When building is justified

  • Pricing is part of the advantage: models that competitors cannot copy easily, or frequent pricing experiments that are central to growth.
  • The domain does not fit any platform: tariff rules with many versions, fee splits between several parties, settlement logic, regulated calculations.
  • Data must stay under your control: where it is stored, how it is audited, or how fast calculations must run.
  • Billing is the product, for example a platform that bills on behalf of its own customers.

Even then, build only what has to be yours.

Often the answer is both

Many teams end up with a hybrid: buy a stable core and build the edges where the product is different.

  • Bought: invoices, subscriptions, tax, payment collection, dunning and the customer portal.
  • Built: the rating layer that turns your domain's usage into billable quantities, using rules only you understand.
  • Built: integrations with the ledger, accounting, the data warehouse or, for utilities, the meter data platform.
  • Built: an audit trail that keeps the history of every input and can explain each invoice line.

The boundary between the two is a contract: your rating layer sends finished, priced quantities to the platform, and the platform never needs to know how they were calculated. That keeps the vendor replaceable and your domain logic in your hands.

A decision process you can run

  1. Write down the non-negotiables first: the launch date, where payment data may be handled, the audit trail you need, local invoicing and tax rules, and data residency. An option that fails one of them is out before any scoring starts.
  2. Describe billing as workflows, not screens: a customer upgrades mid-month, a payment fails three times, a reading is corrected after the invoice, a price changes for new customers only.
  3. Shortlist two to four platforms and ask each to run your workflows in a demo, not their own.
  4. Estimate the build honestly, including operations, support and the years of change after launch, not only the first release.
  5. Compare build, buy and hybrid against agreed criteria: time to first revenue, cost over several years, compliance, how quickly pricing can change, integration effort, behaviour under load and vendor risk. Agree the weights with product, engineering, finance and compliance in the room.
  6. Check how sensitive the result is. If buying wins only when speed is weighted heavily, that is a strategic choice to make on purpose.
  7. Test the riskiest assumption with a pilot: usually one integration and one complete bill run, end to end.

The score does not make the decision. It puts the trade-offs where everyone can see them.

Questions for every billing vendor

  • Can it handle our pricing as it will be in two years, not only as it is today?
  • How are price changes, grandfathered prices and mid-cycle changes handled?
  • How does it support our tax rules and local invoicing requirements?
  • Which payment providers and methods does it work with in our markets?
  • If you sell in Uzbekistan, does it work with a payment provider that serves local companies, and can that provider take Apple Pay and Google Pay, including for recurring charges?
  • Can we export everything, including full invoice history, in a usable format?
  • Can stored payment methods move to another provider, or would customers have to enter their cards again?
  • What does the audit log record, and for how long?
  • How does pricing change as we grow, and what happens at the end of the contract?

The answers to the export questions matter most. A billing platform is easy to join and hard to leave, and the time to plan the exit is before signing.

Switching without losing an invoice

Whether you move from a spreadsheet to a platform, from one platform to another or from a platform to your own system, the method is the same:

  • Run both systems in parallel for several billing cycles.
  • Compare every invoice, line by line, not totals, and investigate every difference until it is explained.
  • Migrate the history customers and auditors will ask about: past invoices, credits, contracts and their exceptions.
  • Move customers in groups, starting with simple ones, with a way back for each group.
  • Keep an identifier from source data to invoice line, so any number on any invoice can be traced to where it came from.

A rule worth keeping: if the plan has only one parallel bill run, it is not a plan yet.

Apple Pay, Google Pay and billing in Uzbekistan

Since 27 October, Visa and Mastercard cards from Uzbek banks can be added to Apple Pay and Google Pay, and the Central Bank has said Humo and Uzcard will follow. For a software company billing customers in Uzbekistan, this changes how customers pay. It does not change where the billing logic lives.

  • Billing stays where it was. Plans, proration, invoices, tax and dunning do not move into the wallet. A wallet is one more way to collect an amount your billing system has already calculated.
  • Checkout gets shorter. For consumers and small businesses paying by card, two taps replace typing a card number, which matters most on a phone.
  • Renewals can become more reliable. A subscription can start with a wallet payment and renew without the customer present, if your payment provider turns that first payment into a token for later charges. Ask whether those tokens stay valid when a bank reissues a card, because expired cards are a common cause of failed renewals.
  • The payment provider decides what is possible. Online wallet payments reach you only through a provider that serves companies registered in Uzbekistan and accepts them. Some of the best-known international payment and billing platforms do not open accounts for Uzbek companies, so for a company here "buy" usually means a billing platform connected to a local provider, or a hybrid with a billing core of your own.
  • Keep the other methods. Humo and Uzcard are not in the wallets yet, and many customers pay with them. Business customers mostly pay by bank transfer against an electronic invoice, which the wallets do not change.
  • Apps follow store rules. Digital subscriptions sold inside an iPhone or Android app still generally go through the app store's own billing.

In short, the launch makes paying easier and renewals more dependable. It does not make the build-or-buy decision for you, but it adds one more requirement to it.

Where to start

List your billing workflows as they are today and as they will be after the next two pricing changes you can foresee. Mark each one as standard, or specific to your product. If almost everything is standard, buy. If a few workflows are specific, buy the core and build those. If the specific part is the heart of the product, build it, and still buy what you can around it.

Then ask your shortlisted vendors the export questions before anything else. Billing decisions last for years, and the ones that age best keep a way out.

Questions about this article

When should a startup build its own billing?

Rarely at the start. Build only the parts where pricing or usage logic is your advantage or does not fit any platform, and buy the standard operations around them. Building everything is justified when billing itself is the product.

What is the hidden cost of building billing?

Not the first version but the years after it: tax and regulatory changes, new pricing plans, payment provider updates, disputes, audits and the support work that every invoice question creates.

What is the biggest risk of buying a billing platform?

Lock-in. Before signing, check that you can export customers, subscriptions and full invoice history, and whether stored payment methods can move to another provider without asking customers to re-enter their cards.

How do we switch billing systems safely?

Run the old and new systems side by side for several billing cycles, compare the results invoice by invoice and line by line, and move customers in groups with a rollback plan for each group.

Do Apple Pay and Google Pay change billing for companies in Uzbekistan?

They change how customers pay, not how you bill. Checkout gets faster and renewals can be more reliable if your provider supports tokens for later charges, but plans, invoices and tax stay in your billing system.

  • Engineering

    Apple Pay and Google Pay in Uzbekistan: how to integrate them properly

    Ilya Ismatov9 min read

  • Engineering

    FastAPI or Django for a SaaS MVP: what changes as the product grows

    Ilya Ismatov8 min read

  • Engineering

    Choosing a tech stack for compliance-heavy SaaS

    Ilya Ismatov5 min read

What are you building?

Tell us about your project. We’ll get back to you to talk through scope, timeline and first steps.

Get started