Add Stripe subscription billing integration
- Add stripe_customer_id and stripe_subscription_id fields to User model - Add Stripe config settings (secret key, publishable key, price ID, webhook secret) - Create billing API endpoints: checkout session, webhook handler, portal, status - Add frontend Billing page with upgrade/manage subscription UI - Add billing route and Pro nav link - Add stripe dependency to requirements
This commit is contained in:
@@ -6,4 +6,8 @@ SPOTIFY_CLIENT_ID=your-spotify-client-id
|
||||
SPOTIFY_CLIENT_SECRET=your-spotify-client-secret
|
||||
SPOTIFY_REDIRECT_URI=http://localhost:5173/auth/spotify/callback
|
||||
ANTHROPIC_API_KEY=your-anthropic-api-key
|
||||
STRIPE_SECRET_KEY=sk_test_your-stripe-secret-key
|
||||
STRIPE_PUBLISHABLE_KEY=pk_test_your-stripe-publishable-key
|
||||
STRIPE_PRICE_ID=price_your-pro-plan-price-id
|
||||
STRIPE_WEBHOOK_SECRET=whsec_your-webhook-signing-secret
|
||||
FRONTEND_URL=http://localhost:5173
|
||||
|
||||
Reference in New Issue
Block a user