Skip to main content
You can set up Stripe payments entirely through Lumi’s chat. Just describe what you want to sell:
  • “Add a membership plan with a monthly fee of $9.99.”
  • “Sell my consulting service for a one-time fee of $299.”
With one Stripe key, Lumi works directly in your Stripe account and builds the whole payment flow in your website:
  • 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.
You can also ask Lumi about your Stripe account at any time, for example “List my active subscriptions” or “Create a 20% off coupon,” and ask questions that Lumi answers from Stripe’s official documentation.
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.1 Pn
Never paste your key into a chat message. The key is saved securely in your project’s Secrets.

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.
Read-only actions, such as listing products, are always allowed. Some sensitive operations, such as refunds, also require Stripe’s own confirmation: Lumi gives you a link to approve them in Stripe.

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.
For example, if you are building a membership-based AI image generator, finish the login and AI features first.
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.2 Pn
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).
If something goes wrong, tell Lumi. It checks your Stripe account and your functions’ logs to find and fix the problem.3 Pn
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. 4 Pn
7

Final test and launch

You can test real payments after going live by creating a low-priced product or a coupon.
  • After switching to live mode, test the payment flow again.
  • Once everything works, publish your website and share it with your users!