Skip to content
tiergate/

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.

  1. 01One billing boundary

    Plans, customers, subscriptions, agreements, payments, and audit evidence stay project-scoped.
  2. 02Provider-safe events

    Signed T-Bank and Polar webhooks are recorded once, processed transactionally, and safe to replay.
  3. 03Delivery 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.