Click Below to Get the Code

Browse, clone, and build from real-world templates powered by Harper.
Architecture
GitHub Logo

Payments and Account Balances

Keep simultaneous outgoing transfers within available funds while serving account history, dashboards, and live status from the same application platform.
Data
Architecture
Data

Payments and Account Balances

Aleks Haugom
Senior Manager of GTM
at Harper
November 16, 2026
Aleks Haugom
Senior Manager of GTM
at Harper
November 16, 2026
Aleks Haugom
Senior Manager of GTM
at Harper
November 16, 2026
November 16, 2026
Protect available funds and keep customers informed, with payment logic, account records, and live updates together.
Keep simultaneous outgoing transfers within available funds while serving account history, dashboards, and live status from the same application platform.
Aleks Haugom
Senior Manager of GTM

An account has $100 available to spend. Two requests arrive almost simultaneously to send $80 out of that same account to different recipients. Approving both would send out $160 when only $100 is available. The first approved transfer must set aside $80, leaving just $20 available, so the second $80 request is declined. This is the balance check a payment platform needs before money leaves an account.

Bring the payment application and its records together

Harper runs account APIs, customer dashboards, payment logic, and operational records on regional nodes managed by Harper Fabric. People, business applications, and agents use the same permission-checked flow for sending money. Live subscriptions keep account activity and payment status connected to saved changes.

Before approving an outgoing transfer, application logic coordinates access to the account record, checks available funds, and sets aside the amount so it is no longer available for another withdrawal or outgoing payment. Participating requests on other nodes must use the same locking protocol, so they cannot independently promise the same available balance. Related reservations, balance changes, and ledger entries commit together within a single database transaction. Coordination across regions is still required for competing changes to the same account.

A saved outgoing-transfer instruction tells an external bank or processor to send money from the account to the intended recipient. The application reconciles confirmations, failures, and reversals against that instruction, updating balances and status without counting a repeated event twice. The database transaction and external transfer are separate steps; a timeout leaves an outcome to resolve, not permission to send the money again.

Payments and balances on one application platformPayments and balances on one application platform. Harper application and data capabilities together: People, apps and agents, Account web / APIs, Payment logic, Payment providers, Account records, Live subscriptions. HARPER APPLICATION AND DATA CAPABILITIES TOGETHERPeople, apps and agentsAccount web / APIsAccounts · dashboardsPayment logicOutgoing transfersPayment providersBanks · processorsAccount recordsBalances · ledger entriesLive subscriptionsActivity · notificationsPayments and balances on one application platformCoordinate requests to send money out of the same account. Reserve available funds before instructing the provider.HARPER FABRICHARPER · REGIONAL NODESRequest transferAccount APIsLock / commitSend fundsSaved changesLive statusStatus updates CLIENT COMPUTE DATABASE MESSAGING EXTERNAL IN-PROCESS CALL

The alternative: connect application, data, and delivery services

A conventional design connects regional web and API servers, a payment service, a transactional database, and messaging for live account updates. Database transactions and account-level coordination protect funds; the payment service integrates external providers. Smaller deployments can combine some services. Regional APIs still depend on the location and availability of the authoritative balance data.

A payment platform across connected servicesA payment platform across connected services. Conventional payment application: People, apps and agents, Regional web / APIs, Payment service, Payment providers, Transactional database, Update relay / broker, Live connection servers. CONVENTIONAL PAYMENT APPLICATIONPeople, apps and agentsRegional web / APIsAccounts · dashboardsPayment serviceOutgoing transfersPayment providersBanks · processorsTransactional databaseBalances · ledger entriesUpdate relay / brokerSaved payment statusLive connection serversActivity · notificationsA payment platform across connected servicesReserve money before sending it out of an account. Provider updates confirm the transfer outcome.Request transferAccount APIsLock / commitSend fundsSaved changesDistributeLive statusStatus updates CLIENT COMPUTE DATABASE MESSAGING EXTERNAL

Keep the payment lifecycle connected

Both designs must keep available funds, pending outgoing transfers, and confirmed outcomes consistent. Harper reduces the infrastructure connections around that work by bringing application execution, stored records, and live delivery into one platform.

Why Harper matters

  • Simpler to build and maintain. Account experiences and payment workflows share a platform with their data, reducing the separate systems the team deploys, connects, and troubleshoots.
  • Protect funds within a broader application. Prevent competing outgoing transfers from using the same available funds while the same platform serves history, dashboards, and operational tools.
  • Extend without rebuilding the foundation. Add spending controls, in-app alerts, or agent approval workflows using existing application logic, records, and messaging capabilities.
  • Grow regional delivery consistently. Fabric manages Harper deployment and configured replication as the customer base expands.

What to validate

The team implements the ledger's accounting rules, balanced entries, and audit history. Validate exact currency amounts, retry-safe payment identities, transaction scope, and recovery without losing acknowledged outcomes. Every balance-changing path must follow the coordination protocol. Test unavailable nodes and provider timeouts, including fallback decisions. Security, audit, and payment-provider requirements remain part of the production design.

Related resources

Review Harper transaction scope, cluster record locks, and Fabric cluster management with your technical team.

Start with a simulated payment flow

Use a provider test environment. Request two outgoing transfers that together exceed one account’s available balance, repeat requests, and interrupt confirmations. Verify balances, ledger entries, and recovered status before live use. Bring the results to a Harper architecture discussion.

‍