Implement Stripe checkout and billing portal #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current state
POST /billing/checkoutandPOST /billing/portalreturn HTTP 500 — Stripe integration is not implemented.Work required
stripecrate dependencystripe_customer_idandstripe_subscription_idtouserstable (migration)POST /billing/checkout: create Stripe Checkout session, return redirect URLPOST /billing/portal: create Stripe Billing Portal session for existing customerPOST /billing/webhook: Stripe webhook handler to update subscription status on events (checkout.session.completed,customer.subscription.updated/deleted)STRIPE_SECRET_KEY,STRIPE_WEBHOOK_SECRET, price IDs per tier