How to build your own online store with your agent, tested end to end A walkthrough published by floo shows how a single prompt to Claude Code, Codex or Cursor can deploy floo's storefront template into a working online store with a cart, Stripe Checkout, shipping options and customer accounts, using only a Stripe secret key as the required secret. In a real run on December 2 and 3, 2026 against a test store called `storefront-check` in Stripe test mode, the first deploy intentionally failed on the missing `STRIPE_SECRET_KEY` until the key was set via `floo env set STRIPE_SECRET_KEY --stdin`, after which the rebuild completed migrations and created the Stripe webhook automatically. The store counts an order as paid only when Stripe's signed webhook confirms it, and owners run it from `/admin` or through the store's API at `/api/orders` and `/api/products`. TL;DR The fastest way to get your own online store out of an agent is to start from one that already takes payments. We used floo's storefront template https://getfloo.com/templates/storefront , one prompt to Claude Code, and a single Stripe key, and ended up with a store with a cart, Stripe Checkout, shipping options and customer accounts, plus an API our agent used to ship the order. - The only secret you set is your Stripe key. The store wires up its own webhook every time it deploys. - Card numbers stay with Stripe. An order counts as paid only once Stripe's signed webhook confirms it. - After launch you run the store from its owner page at /admin , or let your agent do the same work through the store's API. - Everything quoted below came from a real run on December 2 and 3, 2026, against a test store called storefront-check in Stripe test mode. Ask an agent to build "my own online store" and you'll usually get one of two answers. Either it sends you to a hosted store builder, or it starts writing a shop from an empty folder and leaves the payments, webhooks and hosting for you to figure out. There's a middle path, and it's the one this post walks through. You start from a store that already works, deploy it with one prompt, and let your agent change whatever you want from there. We built it, bought from it with a test card, and fixed the things that broke along the way. Those fixes are in here too, because they're the parts you'd otherwise run into yourself. What are you building? A small shop. People browse, add things to a cart, and pay on Stripe's checkout page. They can create an account to see past orders, or check out as a guest. Behind the scenes, you or an agent pick up paid orders and mark them shipped. php shopper - floo gateway public - Next.js store - Postgres |- Stripe Checkout card, shipping, tax Stripe - /webhooks/stripe signed - order paid, stock down, cart emptied owner - floo gateway floo sign-in - /admin agent - floo gateway app API key - /api/orders, /api/products Products, carts and orders live in the store's own Postgres database, and product photos go in a storage bucket that floo sets up for each environment. Stripe takes care of the money. floo runs everything else, including shopper sign-in. Step 1: Deploy with one prompt Paste this into Claude Code, Codex or Cursor: Deploy the template at https://github.com/getfloo/storefront-template on floo for me. Use my existing floo org. If you cannot run commands here, guide me through them one at a time. Follow https://getfloo.com/agents.md to create a floo-hosted project, replace its starter code with this template's files keep the project's app name in floo.app.toml , push, and give me the dev URL. The deploy stops on STRIPE SECRET KEY: have me copy my Stripe test-mode secret key and set it with floo env set STRIPE SECRET KEY --stdin , never pasting it to you, then redeploy. Then walk me through a test purchase with Stripe's test card. Don't worry when the first deploy fails. It's supposed to. The template marks the Stripe key as required, which means a store can't go live before it's able to take payments: Required config is missing Required configuration is missing. Add the missing config field and retry the deploy. Step 2: Set your Stripe key Switch the Stripe Dashboard to test mode, copy the secret key, and set it from your own terminal: floo env set STRIPE SECRET KEY --stdin --app storefront-check floo deploy --rebuild --app storefront-check With --stdin , you type the key into a hidden prompt, so it never shows up in the chat or in your agent's transcript. Production gets its own live key later, with --env prod . Test and live keys never share an environment. When the rebuild runs, the store sets up its Stripe webhook by itself: Migration completed successfully. Stripe webhook: created we 1UiQ… for https://storefront-check.getfloo.app/webhooks/stripe. It didn't always work this way. On our first try we created the webhook by hand in Stripe, which meant answering three questions most store owners have never thought about your account or connected accounts, snapshot or thin payloads, which API version . Then we pasted in the wrong URL. The test purchase went through on Stripe's side, but the order sat at "pending" because the confirmation was going to an address with nothing behind it. So now the store handles it. Each deploy makes sure there's exactly one webhook pointed at the store's current address, with the events and API version its code expects. If you add a custom domain later, the next deploy moves the webhook over. If Stripe disables it after a run of failed deliveries, the next deploy turns it back on. Deploying a second time changed nothing, which is what you'd want: Stripe webhook: we 1UiQ… sends to https://storefront-check.getfloo.app/webhooks/stripe. Step 3: Add products and photos You don't start with an empty shop. Outside production, each deploy adds six sample products while the catalog is empty, so dev has something to buy right away. Production starts empty. Your own products go in through the owner page at /admin . You're a member of the app, so floo signs you in there. Each product gets a form for its name, price, stock and photo, plus a box that takes it out of the shop, and there's a form at the bottom for adding a new one. Shoppers aren't members of the app, so they never get past floo's sign-in page. Photos land in a private bucket, and the store serves them itself with a long cache. We uploaded a PNG and got the same bytes back with cache-control: public, max-age=31536000, immutable . The store turned down an SVG The photo must be one of image/jpeg, image/png, image/webp, image/avif. , since SVG files can carry scripts. Our first version loaded the samples with a script you ran yourself, holding an app API key. That works from a terminal. A store started from a chat has no terminal, though, so the store now does it on deploy. Step 4: Buy something Open the store, put something in the cart and check out. Before you leave the cart, it tells you what shipping will cost: Shipping from $5.00, free over $50.00. You choose the method and pay on the next page, by Stripe. On Stripe's page you'll see the items, the shipping options and the total. Pay with the test card 4242 4242 4242 4242 , using any future date and any CVC. Here's our Express order as the API reported it afterwards: { "status": "paid", "shippingMethod": "Express", "shippingCents": 1500, "taxCents": 0, "totalCents": 3900 } Stock for the item dropped by one and the cart emptied at the same moment the order was marked paid. All three changes happen together in one database transaction, and only for an order that's still pending. That matters because Stripe sometimes delivers the same event twice, and a duplicate doesn't double-count anything. If the shopper was signed in, the order shows up on their orders page with the shipping line and the total. One more thing broke here. A shopper who signed up and entered the emailed code still wasn't signed in afterwards, so their order was saved as a guest's. That turned out to be deliberate on floo's side. Confirming a code shouldn't sign anyone in, because if someone else had registered your email first, you'd land in an account whose password they know. The store now signs the shopper in with the password they chose at sign-up, straight after the code is confirmed. Step 5: Ship the order Paid orders sit at the top of /admin , each with its items, the shipping address and the method the shopper paid for. Mark one shipped and the shopper's orders page goes from "Paid, preparing to ship" to "Shipped". Ship the same order twice and the page tells you Order is fulfilled; only a paid order can be fulfilled. An agent can do the same work through the store's API. Give it a key with the api scope: floo apps consumers create fulfillment-agent --app storefront-check floo apps keys create fulfillment-key --consumer fulfillment-agent --scope api --app storefront-check export STORE URL=https://storefront-check.getfloo.app STORE API KEY=