Skip to main content

3 posts tagged with "billing"

View All Tags

Monetizing TeaQL in Public — Day 4: Renewals, Retries, and Out-of-Order Webhooks

· 8 min read
Philip Z
Architect

A successful first checkout is only the start of a subscription. The next payment has a different transaction ID, arrives without a new user checkout, and may be delivered more than once. An older event can arrive after a newer one.

On Day 3, we connected the shared console to IAM and Billing. Today we add a backend slice: renewing an existing Organization subscription without duplicating access or trusting an Organization ID supplied by the payment payload.

This is local fixture verification, not a real Paddle Sandbox run. Tests use synthetic accounts, signed local HTTP requests, actual TeaQL/SQLite persistence, and a simulated clock. Real Paddle checkout, HTTPS webhook delivery, and payment collection remain unverified. No money was collected.

Monetizing TeaQL in Public — Day 3: Making Billing Visible Without Mixing Permissions

· 8 min read
Philip Z
Architect

A developer can belong to several Organizations, each with different permissions and a different subscription. The console needs to show the right combination while payments and network requests complete asynchronously.

On Day 2, we implemented the Billing API. Today we connected it to our shared TypeScript frontend. Owners can see billing and developer access, Finance can see billing, and Developers can see their Organization's entitlement. Switching Organizations clears the previous view before the next response arrives.

This is still a local fixture demonstration. The screenshots use synthetic accounts, real IAM sessions, and real SQLite persistence. A locally signed fixture supplies the payment event. Real Paddle Sandbox checkout, HTTPS webhook delivery, and GitHub OAuth with a real account have not been exercised in this demo. No real payment was made.

Monetizing TeaQL in Public — Day 2: From Subscriptions to Organization Access

· 8 min read
Philip Z
Architect

A successful payment needs to change the right Organization's access, exactly once. It must also leave the payer's permissions alone: someone handling Finance should not gain access to developer resources simply because a subscription exists.

On Day 1, we built the IAM foundation. Today we added a separate Billing service using TypeScript, TeaQL, Hono, and SQLite. Its first slice connects a server-authorized checkout to a subscription record and an expiring Organization entitlement.

The results in this entry come from local integration tests. IAM authorization, TeaQL persistence, database constraints, and HTTP routing are real. Paddle transaction creation is replaced by a local test adapter, and webhook fixtures are signed locally. Real Paddle Sandbox credentials and an HTTPS callback are still to be configured. This is an API implementation and test report, not a completed Sandbox checkout or a billing UI launch.