- “Add a membership plan with a monthly fee of $9.99.”
- “Sell my consulting service for a one-time fee of $299.”
- Creates products and prices in your Stripe account, reusing existing ones with the same name and amount instead of creating duplicates.
- Builds checkout: a “Buy” or “Subscribe” button that opens Stripe’s secure checkout page.
- Sets up the webhook that tells your website when a payment succeeds or a subscription changes, and records it in your database.
- Adds a customer portal for subscriptions, so customers can cancel or update their card.
- Adds the pricing page and gating, so paid content is only shown to customers who have paid.
Stripe is available for web projects. If you don’t name a payment provider, Lumi uses Stripe. To accept PayPal instead, name PayPal in your request.
Connect your Stripe key
Lumi needs one Stripe API key. It uses the key to manage your Stripe account, and your website’s Functions use the same key to take payments.1
Create a restricted key in Stripe
In the Stripe Dashboard, go to Developers → API keys and create a restricted key with the Agent tag. Use a sandbox key for testing, or a live key for real payments. Give it write access to Products, Prices, Checkout Sessions, Customers, Subscriptions and Webhook Endpoints. Read access to Accounts is optional.
2
Enter the key in Lumi
Either paste it into the Stripe credentials card that Lumi shows in the chat, or open the Tools tab in your workspace, click the Stripe card, paste the key, then click Save and Verify.

Control what Lumi can change
On the Stripe card in the Tools tab, every action that changes your Stripe account has an approval setting:- Always allow: Lumi makes the change without asking (the default for creating products and prices).
- Ask each time: Lumi shows an approval card with the details, and you Approve or Reject it.
- Never allow: Lumi can’t perform this action.
A simple step-by-step example
1
Prepare your project
First, get your project ready for payments. Make sure the core features and pages, such as login and the features users will pay for, are complete.
2
Describe your payment requirements
Describe what you need, for example: “Implement a membership system via Stripe. Free users get 2 images a day; Pro users pay $0.99/month for unlimited use.”
3
Connect a sandbox key
When Lumi asks for your key, connect a Stripe sandbox key. We strongly recommend testing the full payment flow in the sandbox before going live.
4
Lumi creates products, prices and the payment flow
Lumi creates the products and prices in your Stripe account, then builds the checkout, webhook and pricing page in your website. Its reply tells you what was created, whether it is in sandbox or live mode, and how to test. To change anything, just tell Lumi.

5
Test the payment flow
Check that the purchase flow works as expected:
- Clicking “Purchase” on your page opens Stripe’s test checkout page.
- Payment succeeds with the test card
4242 4242 4242 4242, any future expiry date and any CVC. - After paying, the subscription or payment record appears in your database (Cloud → Data), and your page shows the purchase (for example a membership badge or purchase history).

6
Switch to live mode
When testing is complete, you can start taking real payments:
- Activate your Stripe account for live payments according to Stripe’s requirements.
- Replace the key on the Stripe card in the Tools tab with a live key.
-
Ask Lumi to switch to live mode. Products and prices from the sandbox don’t carry over, so Lumi recreates them in your live account and sets up the webhook again.

7
Final test and launch
- After switching to live mode, test the payment flow again.
- Once everything works, publish your website and share it with your users!