Shipfastai includes a ready-to-use Stripe integration for subscription billing. You can create checkout sessions that take a user directly to Stripe’s hosted payment page, redirect existing subscribers to the Stripe customer portal for self-service management, and receive webhook events to keep your database in sync with Stripe’s state. All billing endpoints live underDocumentation Index
Fetch the complete documentation index at: https://docs.shipfastai.dev/llms.txt
Use this file to discover all available pages before exploring further.
/api/billing.
Shipfastai is sold as a one-time purchase with a 30-day money-back guarantee. If you are not satisfied for any reason, contact support within 30 days of purchase for a full refund.
Creating a checkout session
To start a subscription, callPOST /api/billing/create-checkout-session with the Stripe price_id for the plan the user selected. The endpoint creates a Stripe customer for the user if one does not already exist, then returns a url you should redirect the user to.
Request
Response — 200 OK
url. On successful payment, Stripe redirects to {FRONTEND_URL}/dashboard?success=true. On cancellation it redirects to {FRONTEND_URL}/pricing?canceled=true.
Accessing the customer portal
Subscribers can manage their own subscription — upgrade, downgrade, or cancel — through the Stripe customer portal. CallPOST /api/billing/create-portal-session to get a portal URL.
Request
Response — 200 OK
{FRONTEND_URL}/dashboard.
Stripe webhooks
Configure your Stripe dashboard to send webhook events toPOST /api/billing/webhook. The endpoint verifies the Stripe-Signature header using your webhook secret before processing any event.
The following events are handled automatically:
| Event | Effect |
|---|---|
checkout.session.completed | Sets subscription_status = "active" and subscription_tier = "pro" for the user. |
customer.subscription.updated | Syncs the subscription_status field with the value from Stripe. |
customer.subscription.deleted | Sets subscription_status = "cancelled" and subscription_tier = "free". |
{ "received": true } response and are ignored. Additional event types can be handled by extending the webhook handler in your own codebase.
Webhook payload example
Pricing tiers
Shipfastai is available as three one-time-purchase tiers. All tiers include lifetime access to the codebase and one year of updates.- Basic — $199
- Pro — $299
- Enterprise — $499
Everything you need to launch a basic AI SaaS:
- FastAPI + Next.js boilerplate
- JWT authentication + OAuth (Google, GitHub)
- Stripe subscriptions
- Email integration (Brevo)
- Docker Compose setup
- Railway + Vercel deployment
- CI/CD pipeline (GitHub Actions)
- 1 year of updates