- 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
14 lines
622 B
Plaintext
14 lines
622 B
Plaintext
SECRET_KEY=change-me-to-a-random-string
|
|
DATABASE_URL=postgresql+asyncpg://vynl:vynl@db:5432/vynl
|
|
DATABASE_URL_SYNC=postgresql://vynl:vynl@db:5432/vynl
|
|
REDIS_URL=redis://redis:6379/0
|
|
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
|