Adding Payments
What to Expect
Fabricate doesn’t have a ready-made payments module for apps built today, so any payment code is written for your app from scratch. Before you rely on it:- Test on your published app — payment code needs your Stripe keys, and those only reach the published app.
- Set up Stripe yourself — create your products, prices, and webhook endpoints in your Stripe Dashboard. Fabricate can’t access your Stripe account.
- Review the code — check the payment routes in the Code view, and run the full checkout flow with Stripe’s test mode before switching to live keys.
Subscription Patterns
Monthly/Annual Plans
Per-Seat Pricing
Freemium with Upgrade
Setting Up Your Stripe Keys
After Fabricate adds the payment code:1
Get your Stripe keys
Log into your Stripe Dashboard. Go to Developers → API Keys.
2
Add keys as environment secrets
In your project’s settings, open Environment and add your keys as secrets, using the exact names your app’s code reads — for example:
STRIPE_SECRET_KEY— your Stripe secret keySTRIPE_WEBHOOK_SECRET— your webhook signing secret
3
Publish your app
Secrets are applied to your published app when you publish, so publish (or republish) after adding them.
4
Set up webhooks in Stripe
If your app handles Stripe webhooks, add a webhook endpoint in Stripe that points at the webhook route on your published app’s address — its
fabricate.chat address or your custom domain — and listen for the events your code handles.Frequently Asked Questions
Does Fabricate handle PCI compliance?
Does Fabricate handle PCI compliance?
Fabricate doesn’t certify compliance. If your app sends customers to Stripe’s hosted Checkout, card details are entered on Stripe’s pages, so 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.). Most are turned on in your Stripe Dashboard.
Can I offer a free trial?
Can I offer a free trial?
You can ask for one: “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 on your published app before you switch to live keys. Test with card number 4242 4242 4242 4242.