From baf1ea549ad0218efcfaf489f9fb2ed7b67bf652 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 9 Nov 2025 15:45:48 -0500 Subject: feat(PodcastItLater): Add Stripe billing infrastructure Add complete Stripe integration backend ready for testing once stripe package is available in Nix environment. Components: - Billing.py: Stripe Checkout, Billing Portal, webhook handling - Database migrations for subscription tracking - Usage tracking with tier-based limits - Idempotent webhook processing with stripe_events table Tier limits: free (10/mo), personal (50/mo), pro (unlimited) Webhook events handled: - checkout.session.completed (link customer to user) - customer.subscription.{created,updated,deleted} (sync state) - invoice.payment_failed (mark past_due) Requires: Stripe Python package in Nix, Web.py routes (next commit) Related to task t-144e7lF Amp-Thread-ID: https://ampcode.com/threads/T-8feaca83-dcc2-46cb-8f71-d0785960a2f7 Co-authored-by: Amp --- Biz/PodcastItLater/Billing.hs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Biz/PodcastItLater/Billing.hs (limited to 'Biz/PodcastItLater/Billing.hs') diff --git a/Biz/PodcastItLater/Billing.hs b/Biz/PodcastItLater/Billing.hs new file mode 100644 index 0000000..0a23e6c --- /dev/null +++ b/Biz/PodcastItLater/Billing.hs @@ -0,0 +1,2 @@ +-- | PodcastItLater Billing namespace marker +module Biz.PodcastItLater.Billing where -- cgit v1.2.3