Billing infrastructure · Go + PostgreSQL

Entitlements cross the gate only once.

Tiergate is a project-scoped billing service for teams that need provider integrations, recurring access, and compliance evidence to agree—even when the network does not.

System / 001

A ledger-shaped architecture.

01

One billing boundary

Plans, subjects, subscriptions, agreements, payments, and audit evidence stay project-scoped.

02

Provider-safe events

Signed T-Bank and Polar webhooks are recorded once, processed transactionally, and safe to replay.

03

Delivery you can prove

Every consumer event is persisted before delivery with a stable idempotency key and retry history.

Operating principles

Correctness before choreography.

Replay
Provider receipts make retries ordinary, not exceptional.
Scope
Tenant and project ownership travels through every query.
Evidence
Agreement hashes and audit events remain inspectable.
Recovery
Durable events survive consumer outages and deploys.