Stripe Setup Guide
Prerequisites
- Stripe account at https://dashboard.stripe.com/register
- Suture Platform deployed (Fly.io or self-hosted)
Step 1: Create Products
Pro Plan ($9/seat/month)
- Go to https://dashboard.stripe.com/products → "Add product"
- Name: "Suture Pro"
- Description: "Professional plan with unlimited private repos, merge API access, and priority support"
- Pricing: Recurring → Monthly → $9.00
- Note the Price ID (starts with
price_)
Enterprise Plan ($29/seat/month)
- Go to https://dashboard.stripe.com/products → "Add product"
- Name: "Suture Enterprise"
- Description: "Enterprise plan with SSO, audit logging, WASM plugins, SLA, and dedicated support"
- Pricing: Recurring → Monthly → $29.00
- Note the Price ID (starts with
price_)
Step 2: Create Webhook Endpoint
- Go to https://dashboard.stripe.com/webhooks → "Add endpoint"
- URL:
https://YOUR-DOMAIN/billing/webhook
- Events to listen for:
checkout.session.completed
customer.subscription.created
customer.subscription.updated
customer.subscription.deleted
invoice.payment_failed
invoice.paid
- Note the Signing secret (starts with
whsec_)
STRIPE_KEY=sk_live_...
STRIPE_WEBHOOK_SECRET=whsec_...
STRIPE_PRO_PRICE_ID=price_...
STRIPE_ENTERPRISE_PRICE_ID=price_...
Step 4: OAuth Providers (Optional)
Google OAuth
- https://console.cloud.google.com/apis/credentials
- Create OAuth 2.0 Client ID (Web application)
- Authorized redirect URI:
https://YOUR-DOMAIN/auth/google/callback
- Note Client ID and Client Secret
GitHub OAuth
- https://github.com/settings/developers
- New OAuth App
- Authorization callback URL:
https://YOUR-DOMAIN/auth/github/callback
- Note Client ID and Client Secret