Stripe and Payments
Fyso billing is managed through Stripe.
Subscription Flow
- The user chooses the Pro plan from the admin panel
- A Stripe Checkout session is created
- The user completes the payment on Stripe
- Fyso receives the webhook and updates the tenant's plan
- Limits are applied immediately
Customer Portal
Users with an active subscription can access the Stripe portal to:
- View invoices and receipts
- Update payment method
- Cancel subscription
Webhooks
Fyso processes the following Stripe events:
checkout.session.completed-- New subscription completedcustomer.subscription.updated-- Subscription changescustomer.subscription.deleted-- Subscription canceledinvoice.payment_failed-- Failed payment
Configuration (admin)
Required environment variables:
| Variable | Description |
|---|---|
STRIPE_SECRET_KEY | Stripe secret key |
STRIPE_WEBHOOK_SECRET | Secret for verifying webhooks |
STRIPE_PRICE_ID | Price ID for the Pro plan |