Skip to content

No. 64Security8 min read2,208 words

How to build a fintech app: MVP, stack and timelines

How to build a fintech app step by step: pick a regulatory model and partners, scope the MVP, design the ledger, choose a stack and plan realistic timelines.

Written by
Lazy Devs
Published
Updated
Sources
Cited inline

Key takeaways · 05

The short version

  1. 01The first decision in a fintech build is regulatory, not technical: whether you will ever hold or move customer funds yourself. Most startups sit on a licensed partner so they do not need their own money transmission licences.
  2. 02A credible fintech MVP is one money flow done end to end: KYC onboarding, a funding source, one movement of money, a double-entry ledger, an audit trail and daily reconciliation.
  3. 03Store money as integers in minor units with an ISO 4217 currency code, never as floating-point numbers, and derive balances from an append-only ledger.
  4. 04Every operation that moves money needs an idempotency key enforced by a unique database constraint, so retries and duplicate webhooks cannot double-charge anyone.
  5. 05As a rough guide, a product that never holds funds can launch in a few months, while one that moves money through a partner usually takes six months to a year, mostly spent on integration, reconciliation and compliance.
On this page · 14

To build a fintech app, decide first whether you will ever hold or move customer money, because that sets your licensing, partners, budget and timeline. Then pick a licensed partner to handle custody, scope an MVP around one money flow done perfectly, model money as integers in a double-entry ledger, make every money operation idempotent, buy KYC rather than building it, and reconcile against your provider every day. The visible app is usually the smaller half of the work.

Most fintech demos look great: a clean dashboard, a balance, a transfer button. Then real money flows through it, a webhook fires twice, a refund lands before the charge it reverses, and you discover the demo was the easy part. This guide is for the founder writing the checks. It walks through the build in the order the decisions actually need to be made.

This is engineering guidance, not legal or regulatory advice. Confirm your obligations with a qualified fintech lawyer or compliance professional.

Step 1: Decide your regulatory model

"Fintech app" covers everything from a budgeting tool that reads bank data to a product that holds deposits. The question that separates them is: do you ever touch the funds?

ModelExamplesWhat it usually means for you
Read-only dataBudgeting, analytics, underwriting from bank dataData aggregator integration, consent, privacy and security; no custody
Payments through a processorMarketplaces, SaaS billing, invoicingThe processor holds funds and carries most licensing; you manage PCI scope and payouts
Embedded finance via a partnerAccounts, cards, transfers inside your productA sponsor bank or BaaS provider holds the licences; you inherit their compliance programme and oversight
Licensed yourselfMoney transmitter, e-money institutionYour own licences, capital, compliance officer and examinations

In the US, a business that transmits money for others is generally a money services business that must register with FinCEN and obtain state licences, which is a long and expensive road. That is why almost every startup builds on the second or third model: you build the experience, a regulated partner holds the money and the hardest licences.

Write this decision down before anything else. It sets your timeline, your budget, your vendor list and how much of your stack an auditor will look at. We go deeper on the compliance consequences of each model in web app considerations for fintech.

Step 2: Choose your partners

Your partners are effectively part of your architecture. Evaluate them like you would a database you cannot migrate away from.

  • Banking or payments partner. Sponsor bank, BaaS provider or processor. Check their API quality, sandbox realism, webhook reliability, reconciliation reports, and what their compliance team will require of you.
  • KYC and AML provider. Identity verification and sanctions screening. You buy this; you never build it.
  • Data aggregator, if you read bank accounts.
  • Auth provider with MFA and step-up authentication.

Ask every partner the same uncomfortable questions: how do you report settlement, how do you signal reversals and disputes, what happens when your webhook delivery fails, and how do we reconcile against you daily? The answers predict your next year of engineering work.

Step 3: Scope the MVP

The temptation is to build the whole bank. A first version that proves people will move money through you needs less than you think.

Build firstLeave for later
KYC onboarding wired to a providerMulti-currency and FX
Account linking or a funding source via your partnerCard issuing and physical cards
One money movement done correctly end to endIn-house fraud models
A double-entry ledgerRich analytics dashboards
Authentication with step-up for sensitive actionsNative mobile apps, unless your core feature needs one
An immutable audit trailSelf-serve admin tooling for every edge case
Daily reconciliation, even if it starts as a scriptOpen API for third parties

The honest MVP is one money path that never loses a cent, fully auditable, sitting on a partner who holds the funds. Everything else is a feature, not a foundation.

Step 4: Model money correctly

Money is not a float. In JavaScript, 0.1 + 0.2 evaluates to 0.30000000000000004, and that error compounds into reconciliation nightmares. Store amounts as integers in the currency's minor unit, together with an ISO 4217 currency code. Note that "minor unit" is not always cents: some currencies have zero decimal places and some have three, so look the exponent up rather than assuming two.

In JavaScript, regular numbers are only exact up to Number.MAX_SAFE_INTEGER, so use bigint for amounts in your domain code. In PostgreSQL, use bigint for minor units or numeric when you need exact fractional values such as FX rates, never real or double precision.

You need a ledger, not a balance column. Never update a balance in place. Record immutable debits and credits and derive the balance by summing them. This is double-entry bookkeeping, centuries old, and it works. Every movement is at least two entries that net to zero:

create table ledger_entries (
  id          bigint generated always as identity primary key,
  txn_id      uuid        not null,          -- groups the legs of one movement
  account_id  bigint      not null,
  direction   text        not null check (direction in ('debit', 'credit')),
  amount      bigint      not null check (amount > 0),  -- minor units
  currency    char(3)     not null,          -- ISO 4217 code
  created_at  timestamptz not null default now()
);
 
create index on ledger_entries (account_id, created_at);
create index on ledger_entries (txn_id);
 
-- Invariant: for every txn_id and currency, debits equal credits.
-- Enforce it in the posting function and test it continuously.

Entries are append-only; mistakes are corrected with new reversing entries, never edits. A balance is a sum(), optionally cached. A bug becomes traceable instead of a guess. Our deep dive on payment reconciliation and ledgers covers pending states, provider accounts and the failure cases.

Step 5: Make every money movement idempotent

Networks fail, clients retry, and payment events arrive twice, late or out of order. If a retry runs your transfer logic again, you double-move money. Every money operation needs an idempotency key, the same idea Stripe uses on its API, enforced by a unique constraint in your database:

async function transfer(idempotencyKey: string, cmd: TransferCommand) {
  return db.transaction(async (tx) => {
    // A unique constraint on the key is the gate. In Postgres,
    // INSERT ... ON CONFLICT DO NOTHING makes a concurrent duplicate
    // wait for the first transaction, then insert nothing.
    const isNew = await tx.idempotencyKeys.insertIfAbsent(idempotencyKey);
    if (!isNew) return tx.idempotencyKeys.getResult(idempotencyKey);
 
    const result = await tx.ledger.postTransfer(cmd); // all legs, same transaction
    await tx.idempotencyKeys.saveResult(idempotencyKey, result);
    return result;
  });
}

The key, the ledger write and the saved result commit together or not at all. Generate the key on the client for user-initiated actions (so a double-tap is safe), and use the provider's event ID for incoming webhooks.

Step 6: Onboarding and identity verification

If customers move money, you need Know Your Customer (KYC) checks and anti-money-laundering screening. Buy a provider, let them collect documents in their hosted flow, and treat their signed webhook as the record of truth. The UX matters as much as the integration: a clumsy verification flow is one of the fastest ways to lose customers who wanted to sign up. Our guide to KYC and identity verification in fintech covers where to place checks and how to handle the messy middle of retries and manual review.

Step 7: Security and authentication

Fintech raises the stakes on every item in our web application security checklist. Three matter most:

  1. Check ownership on every request. OWASP ranks broken object level authorization as the top API security risk: user A reads user B's transactions by changing an ID. Scope every query to the authenticated customer.
  2. Step up for money. Logging in is one bar; moving money, adding a payee or changing contact details is a higher one. Require recent re-authentication or a second factor.
  3. Keep card data off your servers. Use your processor's hosted fields or checkout so raw card numbers never touch your systems. Stripe's guide to PCI compliance explains how this keeps your PCI DSS scope small.

Step 8: Reconcile and operate

Your ledger and your partner's records are two books that will drift: settlement delays, reversals, fees, disputes. Run a scheduled job that compares them and alerts on every difference it cannot explain. Daily is the minimum. Nobody watches background jobs on a Tuesday night, which is exactly why they need alerts.

Add an audit trail that answers "who did what, to which account, when and why", including your own staff and support tools. Keep it append-only and separate from operational data. Retrofitting it means reconstructing history you no longer have.

How to test money movement before real money moves

Happy-path tests prove very little in fintech. The bugs that cost money live in retries, timing and partial failure, so the test suite has to aim there on purpose. Your partner's sandbox helps, but sandboxes are usually cleaner and more predictable than production, so do not let a green sandbox run be your only evidence.

TestWhat it provesHow we usually run it
Ledger invariantEvery transaction's debits equal its credits, per currencyA database query that returns zero rows, run in CI against fixtures and on a schedule in production
Duplicate deliveryA retried request or replayed webhook moves money onceSend the same idempotency key or event ID twice, including concurrently
Out-of-order eventsA refund or reversal that arrives before its original is handledReplay recorded events in shuffled order
Crash mid-operationNo half-posted transfersKill the process between steps and confirm the transaction rolled back
Partner timeoutsThe app shows a pending state instead of guessingStub the partner to hang or return errors
AuthorizationOne customer cannot read or move another's moneyAutomated tests that swap account IDs on every money endpoint
ReconciliationYour job finds breaks you plantedSeed known mismatches and check the job reports each one

Property-based tests are worth the effort for the posting function: generate random sets of legs and assert that balanced ones post and unbalanced ones are refused. They find edge cases, such as zero amounts or mixed currencies, that hand-written examples miss.

Finally, rehearse operations, not just code. Run a mock incident where a webhook endpoint was down for an hour and the team has to replay events and reconcile. If that drill is painful in staging, it will be far worse in production with customers waiting.

The stack we reach for

No surprises here, and that is the point. Fintech rewards boring, proven tools.

LayerOur choiceWhy
DatabasePostgreSQLReal transactions, constraints, row locks and exact numeric types
BackendNode.js and strict TypeScriptA dedicated money type and strict mode make unit and currency mix-ups hard to write
Web appNext.jsSensitive logic stays on the server; the browser never decides money outcomes
PaymentsA processor or BaaS partnerCustody and licences sit with the regulated party; our Stripe integration work covers the card side
KYCA specialist vendorDocument checks, liveness and sanctions data are their whole business
AuthA managed providerMFA, step-up, device and session management
JobsA durable queueWebhook processing, reconciliation and retries that survive restarts

The common thread is least privilege everywhere: secrets in a manager, staff access scoped and logged, and money logic behind server-side API and backend engineering rather than in the client.

Timelines, roughly

Treat these as order-of-magnitude planning ranges, not quotes.

  • Read-only or decisioning product (no funds held): roughly three to five months with a small senior team.
  • Product that moves money via a partner: roughly six to twelve months, much of it on partner integration, reconciliation and compliance rather than the UI.
  • Ongoing compliance: if you sell to businesses or banks, expect requests for a SOC 2 report. A SOC 2 Type II report covers controls over an observation period of several months, so start early, and budget for it as a recurring cost rather than a one-off.

An agency that only quotes you the screens has not priced the hard part.

Mistakes we see most often

  • "We'll add compliance later." It almost always costs more than building it in.
  • A KYC flow that rejects people with a red error and no next step.
  • A machine-learning fraud engine for the first thousand users. You lack the data to train it; rules plus a vendor are enough early on.
  • Over-investing in dashboards that demo well while the ledger underneath is fragile.
  • Testing only the happy path. Failed payments, partial refunds, reversals and duplicate webhooks are where real money goes missing.

Build it with a team that has done the plumbing

Get four things right early and the rest gets easier: model money as integers in a ledger, make every operation idempotent, keep an immutable audit trail, and check authorization on every request. Decide your regulatory model before you build, not after a partner's compliance team asks.

This is squarely the kind of product we build for fintech teams, and the kind we get called in to fix when the numbers stop matching. If you want a second pair of eyes on your architecture before you commit, tell us what you are building.

FAQ · 05 questions

Frequently asked questions

How much does it cost to build a fintech app?

It depends far more on your regulatory model than on the screens. A read-only product such as budgeting or analytics costs a fraction of a product that moves money, because the latter adds partner integration, KYC, ledgers, reconciliation and ongoing compliance work such as audits. Get a scoped estimate only after you have chosen your model and partners.

Do I need a licence to build a fintech app?

Not necessarily. If you never hold or transmit customer funds, you may not need a money transmission licence. Many startups that do move money operate through a sponsor bank, a Banking-as-a-Service provider or a payment processor that holds the licences. Your exact obligations depend on your product and jurisdiction, so confirm them with a fintech lawyer before you build.

What is the best tech stack for a fintech app?

Boring, proven tools. A relational database with real transactions such as PostgreSQL, a strictly typed backend language such as TypeScript, and a web framework like Next.js work well. The more important choices are your banking or payments partner, your KYC provider, and keeping card data off your servers to reduce PCI DSS scope.

Should a fintech startup build a mobile app or a web app first?

Usually a web app or progressive web app first, unless your core feature needs native capabilities such as card provisioning to mobile wallets or device-bound authentication. A web app is faster to iterate and easier to secure and audit. Add native apps once the money flows and compliance processes are proven.

Why do fintech apps need a ledger instead of a balance field?

A balance field updated in place loses history and breaks under concurrent requests or crashes. A double-entry ledger records every movement as immutable debit and credit entries that net to zero, so balances can be recalculated, audited and reconciled against your provider at any time.

Filed underSecurityBackend

Related service

API & Backend Engineering

Secure, well-documented APIs that scale.

Learn more

Next step

Want this built right?

This is the work we do every day. Tell us what you are building and we will show you exactly how we would ship it.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts