Add Stripe payment integration for AI subscriptions
Implement subscription-based AI access with 250 generations/month at $5/month or $50/year. Changes: - Backend: Stripe service, payment routes, webhook handlers, generation tracking - Frontend: Upgrade page with pricing, payment success/cancel pages, UI prompts - Database: Add subscription fields to users, payments table, migrations - Config: Stripe env vars to .env.example, docker-compose.prod.yml, PRODUCTION.md - Tests: Payment route tests, component tests, subscription hook tests Users without AI access see upgrade prompts; subscribers see remaining generation count.
This commit is contained in:
parent
3c54a0f4d9
commit
2e12edc249
22 changed files with 2866 additions and 21 deletions
|
|
@ -50,6 +50,15 @@ LOG_REQUESTS=false
|
|||
# ==============================================================================
|
||||
GEMINI_API_KEY=
|
||||
|
||||
# ==============================================================================
|
||||
# OPTIONAL - Stripe Payments (for AI subscription access)
|
||||
# Required for paid AI access. Get keys at: https://dashboard.stripe.com/apikeys
|
||||
# ==============================================================================
|
||||
STRIPE_SECRET_KEY=
|
||||
STRIPE_WEBHOOK_SECRET=
|
||||
STRIPE_PRICE_ID_MONTHLY=
|
||||
STRIPE_PRICE_ID_YEARLY=
|
||||
|
||||
# ==============================================================================
|
||||
# OPTIONAL - TURN Server (REQUIRED for cross-network multiplayer)
|
||||
# Without TURN, players behind restrictive NATs/firewalls cannot connect.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue