Appearance
Payment Flow
FreshHow ShipFast handles Stripe payments and subscription lifecycle.
Checkout Flow
Subscription Lifecycle
Webhook Events
| Event | Action |
|---|---|
checkout.session.completed | Set hasAccess = true, provision access |
| Custom events | Add your logic: send emails, add credits, etc. |
Production Webhook Setup
- Stripe Dashboard > Developers > Webhooks > Add Endpoint
- URL:
https://yourdomain.com/api/webhook/stripe - Select events:
checkout.session.completed - Copy signing secret to
STRIPE_WEBHOOK_SECRETenv var