Skip to content
All work

TP Billing

Quotation-to-invoice billing for a wedding photography studio, licensed per machine.

Role
macOS Engineer
Platforms
macOS
Year
2026
Quotation editor: package pricing, coverage sessions, PDF style

Team Portrait is a wedding and event photography studio with its own quotation format, its own package pricing and its own payment schedule, none of which a generic invoicing app knows how to represent.

TP Billing is adapted from Ra Invoices for exactly their workflow: package-based pricing with priced extras, a quotation that converts into an invoice while keeping the same event ID, coverage broken into sessions with named crew, deliverables grouped as photography or videography, and a 30/60/10 advance-event-delivery payment ledger that marks each milestone paid, part-paid or due. It runs fully offline and ships as a commercial, per-machine-licensed product. An Ed25519-signed activation key tied to the Mac it is issued for, built and verified by a vendor-only licensing tool that never ships with the app itself.

30/60/10
payment schedule, tracked to the milestone
9
starter packages, from the studio's own price list
  • Swift 6
  • SwiftUI
  • SwiftData
  • CoreGraphics
  • PDFKit
  • Ed25519

How it was built.

Modelling the studio's workflow, not a generic invoice

Problem
A studio does not think in line items. It thinks in packages, sessions and crew ("1 candid videographer for the reception" is the unit of billing, not an hourly rate), and a wedding needs a quotation the couple can approve before it becomes a thing they owe money against.
Approach
A data model built around package price plus priced extras, a quotation-to-invoice conversion that carries the same event ID across both documents, and per-session coverage entries with named crew lines and optional dates, so a multi-day wedding with a pre-shoot, the event and a reception reads the way the studio actually quotes it.
Trade-off
The studio fills in a form that matches how they already talk to clients, instead of translating their process into someone else's invoice fields.

Shipping a commercial license into an app with no server

Problem
The app runs entirely offline, no backend to check a subscription against, but it is still being sold as a product, so it needs real licensing: a key the studio activates once, tied to their machine, that cannot be copied onto a second Mac by pasting a text file.
Approach
Ed25519 signature verification against the machine's identity, issued by a separate command-line tool that holds the private key and never ships inside the app bundle. The customer sends a machine code; the vendor issues a signed license file back.
Trade-off
A real commercial licensing model for a fully offline app, with no subscription server to run or keep available. The tradeoff is manual issuance. Every activation is a vendor sending a file, not a self-serve checkout.