Fabricate can add complete Stripe payment integrations to your app. Just describe the billing model you want, and the AI generates the full implementation.Documentation Index
Fetch the complete documentation index at: https://fabricate.build/docs/llms.txt
Use this file to discover all available pages before exploring further.
Adding Payments
What Gets Generated
Stripe integration:- Stripe SDK configuration
- Price IDs mapped to your plan names
- Checkout session creation
- Webhook handler for payment events
- Subscription status stored on user records
- Payment history table (if requested)
POST /api/billing/checkout— creates Stripe checkout sessionPOST /api/billing/portal— opens Stripe customer portalPOST /api/webhooks/stripe— handles Stripe webhook events
- Pricing page with plan comparison
- Checkout flow with Stripe redirect
- Billing portal link for subscription management
- Subscription status gates for premium features
Subscription Patterns
Monthly/Annual Plans
Per-Seat Pricing
Freemium with Upgrade
Setting Up Your Stripe Keys
After Fabricate generates the payment code:Get your Stripe keys
Log into your Stripe Dashboard. Go to Developers → API Keys.
Add keys as environment secrets
In Fabricate’s Build settings, add:
STRIPE_SECRET_KEY— your Stripe secret keySTRIPE_WEBHOOK_SECRET— your webhook signing secret
Frequently Asked Questions
Does Fabricate handle PCI compliance?
Does Fabricate handle PCI compliance?
Yes — Stripe handles all card data. Your app never sees or stores raw card numbers. Stripe is PCI DSS Level 1 certified.
Can I add multiple payment methods?
Can I add multiple payment methods?
Stripe supports many payment methods (cards, Apple Pay, Google Pay, etc.). Ask Fabricate to enable specific payment methods you want.
Can I offer a free trial?
Can I offer a free trial?
Yes: “Add a 14-day free trial before the subscription starts — no credit card required until the trial ends.”
Can I test payments without real money?
Can I test payments without real money?
Yes. Use Stripe’s test mode keys during development. Test with card number 4242 4242 4242 4242.