How to set up Stripe Subscriptions:
- Create a Stripe account at stripe.com
- Go to Products in your Stripe dashboard
- Create a new product called "Annual Membership" with price $59/year
- Create additional prices for competing members ($29/year each)
- Copy the Price ID (starts with price_) for the base membership
- Go to Developers → API keys
- Copy your Publishable key (pk_) and Secret key (sk_)
- Paste all keys below and save
- Set up a webhook endpoint (see instructions below)
Important: Webhook Setup Required
To automatically renew memberships and handle subscription events, you need to set up a Stripe webhook:
- Go to Developers → Webhooks in your Stripe dashboard
- Click "Add endpoint"
- Use this URL:
[YOUR_BACKEND_URL]/stripe/webhook - Select these events:
- customer.subscription.created
- customer.subscription.updated
- customer.subscription.deleted
- invoice.payment_succeeded
- invoice.payment_failed
- Copy the webhook signing secret and store it securely
Security Notes
- Never share your secret key publicly
- Use test mode keys during development (pk_test_ and sk_test_)
- Switch to live keys only when ready for production
- Monitor your Stripe dashboard for subscription activity
- Set up email notifications in Stripe for failed payments
