AI can help build a custom online store, but a working store requires authoritative server-side prices, inventory, hosted payment collection, signed webhooks, protected order data, and real business policies. This Adios guide stays in test mode and stops before live payment or production changes.
↗ A variant, currency, price, and stock belong to the catalog.
↳ /cart
02Recalculate on the server.
HOMEWARE / TEST MODE
Two mugs. One cart.
Continue to checkout
2 × EUR 18.00Subtotal: EUR 36.00
↗ Do not trust a price or total sent by the browser.
↳ payment provider / sandbox
03Keep payment collection hosted.
HOMEWARE / TEST MODE
Test payment only.
Simulated confirmation
Mode: sandboxNo real charge
↗ A return to the success page is not proof of payment.
↳ /orders/DEMO-42
04Let the verified event update the order.
HOMEWARE / TEST MODE
Order confirmed.
View order
DEMO-42 · paid (test)Duplicate event → ignored
↗ One payment event creates one order transition.
The example is a fictional small-batch homeware catalog with variants, stock, cart, hosted test checkout, order history, and a protected administration view. The walkthrough illustrates the intended behavior with simulated data; your implementation still needs the complete test journey and failure checks before live payments. Explore more ways to build with AI on Adios.
Worked example / Test-mode homeware store
The difficult part starts after “Add to cart.”
In this example, two mugs cost EUR 36 before any applicable shipping or tax. The browser submits product IDs and quantities; the server reads current prices and availability. The payment provider then handles the test checkout.
Record the provider event once, then update the order and inventory together.
↩
A return URL is just navigation.
Keep the order pending until your server verifies payment.
01
Keep three states separate.
A cart is an intention, a payment is a provider event, and an order is your business record. Store identifiers that connect them. Verify the event signature before changing payment state, and never mark an order paid from a browser redirect alone.
02
Exercise failure and repetition.
Test a cancelled checkout, an expired session, an invalid signature, a repeated event, and the last item purchased concurrently. Define when stock is reserved and when it is released. Record failed fulfilment separately so a paid order cannot disappear silently.
03
Prepare operations before live mode.
Decide how staff find an order, issue a refund, correct an address, and contact a customer. Keep admin access separate from customer history. Validate shipping, tax, returns, and support information for the markets you actually serve before enabling live payments.
This walkthrough demonstrates the intended state changes with fake data. It does not connect to a payment provider, create orders, or verify a live commerce deployment. The prompts below help you build and test your own implementation.
Keep test mode until every product gate and owner decision is complete, then approve each production change explicitly.
TEST MODE — This guide uses simulated examples and test-payment prompts. Complete the provider integration and failure checks in your own project before enabling live payments.
Example build / Test-mode homeware store
A purchase system, not a generated product grid
The proof begins after the Add to cart button: server-calculated prices, inventory limits, hosted checkout, signed events, idempotent orders, and private administration.
Make the commercial decisions before generating checkout
Code cannot decide where you sell, how you calculate tax, what shipping costs, or which returns you accept. Record those decisions—or mark them unresolved—before the agent touches payments.
INPUT / 01
Product truth
Define products, variants, prices, currency, inventory rules, and which source owns each value.
INPUT / 02
Fulfilment boundary
Write down shipping countries, rates, delivery promises, stock behavior, and support contact.
INPUT / 03
Payment boundary
Use hosted checkout and provider test mode. Never collect or store raw card details in the app.
INPUT / 04
Customer obligations
Confirm tax, refunds, returns, privacy, terms, prohibited products, and support before going live.
A store is a full-stack app. If this is your first build, complete build your first app with AI before adding money and customer data.
01
Policies before payment
Plan the complete test purchase and its business boundaries
Fill in each field with a real decision or write 'decision needed.' The agent must surface missing tax, shipping, refund, privacy, and provider requirements before editing.
Store planning prompt
Help me plan a small online store in this Adios workspace. Do not edit files yet.
Store facts:
- Store name: [NAME]
- Customer: [CUSTOMER]
- Product types: [PRODUCTS]
- Variants: [SIZE, COLOR, OR OTHER OPTIONS]
- Inventory rule: [TRACKED, MADE TO ORDER, OR NOT TRACKED]
- Countries served: [COUNTRIES]
- Currency: [CURRENCY]
- Payment provider: [PROVIDER IN TEST MODE]
- Shipping approach: [RULE]
- Tax approach: [RULE OR DECISION STILL NEEDED]
- Refund and return policy: [REAL POLICY OR DECISION STILL NEEDED]
Inspect the repository, database setup, authentication, tests, health route, and adios.yaml. Plan the smallest end-to-end test store covering catalog, product detail, cart, checkout handoff, signed payment events, orders, inventory, and protected administration.
List decisions I still need to make about tax, shipping, refunds, privacy, customer support, prohibited products, and payment-provider requirements. Wait for my approval before editing.
What a useful response contains
A complete test purchase journey
Authoritative product, price, and inventory sources
Order and payment state transitions
A list of unresolved business decisions
02
Build in test mode
Generate the catalog, cart, checkout handoff, and order state
This prompt keeps price calculations on the server, uses hosted checkout, verifies signed events, and makes duplicate-event tests part of the build.
Store build prompt
Build the approved online-store test version. Do not enable live payments or deploy to production.
Requirements:
- Preserve the current framework, package manager, health route, tests, and Adios deployment files.
- Store products, variants, inventory, carts, and orders in the configured database with clear relationships and reversible migrations where supported.
- Calculate prices and inventory on the server. Do not trust totals sent by the browser.
- Use the payment provider's current official SDK and hosted test checkout. Never collect or store raw card details.
- Verify signed webhooks, handle duplicate events idempotently, and record a clear order-state history.
- Protect administration routes and enforce permissions on the server.
- Keep payment, database, email, and session secrets out of source and list their environment-variable names.
- Add useful loading, empty-cart, sold-out, declined-payment, cancelled-checkout, and order-confirmation states.
- Use sample products clearly labelled as fictional. Do not invent reviews, scarcity, discounts, certifications, or delivery promises.
- Add tests for price calculation, inventory limits, authorization, webhook signature rejection, duplicate events, and the order happy path.
- Run the existing formatter, lint, tests, and production build.
Return the changed files, data model, order-state model, test evidence, required Adios secrets, and an exact Preview test journey. Do not deploy.
What a useful response contains
Server-owned totals and inventory
Hosted provider checkout in test mode
Verified, idempotent payment events
Protected administration and private orders
Try the customer journey
A small store you can click through.
Choose a finish, add a mug, and follow a simulated checkout. This example runs in your browser and makes no real payment.
FORM & FIELDHOMEWARE / DEMOCart (0)
Made for everyday rituals.STONEWARE / 01
The everyday collection
Stoneware mug
EUR 18 / 350 ml
Test checkout
Cart→Checkout→Order
Your cart is ready for something good.
Stoneware mug× 0
SubtotalEUR 0
Example subtotal before shipping or tax.
Browser-only example · No real charge
03
Exercise failure and replay
Audit the purchase journey beyond successful checkout
The useful tests are declined, cancelled, tampered, duplicated, unauthorized, and out of stock. This prompt asks for evidence for each one.
Store verification prompt
Audit the store's complete test-mode purchase journey. Fix only confirmed problems and do not deploy.
Test:
- browsing products and selecting valid variants;
- price, currency, quantity, and inventory calculations;
- empty, expired, tampered, and out-of-stock carts;
- successful, declined, cancelled, and repeated checkout events;
- invalid webhook signatures and duplicate valid webhooks;
- order creation and inventory updates occurring exactly once;
- a customer being unable to access another customer's private order;
- an unauthenticated user being unable to access administration;
- logs avoiding card data, credentials, and unnecessary personal information; and
- formatter, lint, tests, build, and health checks.
Give me a result for every case, remaining risks, and the manual steps I must perform with the provider's test tools.
What a useful response contains
A recorded result for each failure path
Exactly-once order and inventory behavior
Private customer and administration access
Provider test-tool instructions
04
Separate code from obligations
Prepare a production-readiness decision without going live
The last prompt distinguishes technical evidence from tax, fulfilment, privacy, support, and policy choices only the store owner can approve.
Store release-review prompt
Prepare this store for a production-readiness decision. Do not switch to live payment credentials and do not deploy.
Confirm the production domain, product and price source of truth, currency, inventory behavior, shipping regions and rates, tax decision, refund policy, privacy notice, terms, support contact, order emails, webhook URL, secret names, database migration, backups, health route, logs, and rollback plan.
Separate technical checks that passed from business or legal decisions I still own. List every test-mode value and placeholder that must be replaced. Stop for explicit approval before any live payment or production change.
What a useful response contains
Technical evidence separated from owner decisions
Every test-mode value and placeholder listed
Migration, backup, webhook, health, and rollback notes
No live credential or deployment change
T
Test the result
A passing build is the start of the review
Open Preview and perform the important journeys yourself. Ask the agent for evidence, but do not confuse its summary with your approval.
TEST / 01
Money and stock
The server recalculates price, currency, quantity, discounts, and stock before checkout.
Empty, expired, tampered, and out-of-stock carts fail with a useful next step.
A valid payment event creates the order and inventory movement exactly once.
TEST / 02
Payment events
Invalid signatures are rejected and duplicate valid webhooks are harmless.
Successful, declined, cancelled, delayed, and repeated test events have explicit results.
No raw card data, provider secret, or unnecessary personal data enters source or logs.
TEST / 03
Access and operations
Customers cannot read another customer's private order and strangers cannot open administration.
Migrations, backups, order email, health, logs, and rollback behavior are known.
Tax, shipping, refund, privacy, terms, support, and product obligations have an owner decision.
Human approval gate
Keep the store in test mode until every gate has an owner
This guide intentionally stops before live payments. Complete the provider test journey, settle the business and legal decisions, replace every test value, and obtain explicit approval before indexing or releasing the store guide as proven.
04List and replace every test-mode ID, URL, credential name, and content placeholder.
05Approve live-payment and production changes separately; do not infer approval from a passing build.
?
Questions before you start
What this guide does—and does not—promise
Can AI build a working online store rather than a mockup?+
It can help generate a working custom store, but the proof includes server-side pricing, inventory, hosted checkout, signed events, idempotent orders, protected data, tests, and real policies. A product grid and cart animation are not enough.
Why does the guide require hosted checkout?+
Hosted checkout keeps raw card collection with the payment provider rather than your application. The app still must protect provider secrets, verify signed events, handle repeats safely, and own order state correctly.
Who is responsible for tax, shipping, refunds, and privacy?+
The store owner remains responsible for those business and legal decisions. The AI can implement approved rules and surface missing choices, but it cannot decide which obligations apply or approve them for you.
Does the animation demonstrate a working payment integration?+
No. The animation is an educational simulation. To validate your store, connect a provider in test mode and verify catalog, checkout, signed events, orders, inventory, access control, and failure recovery against your actual implementation.
Start with a reviewable workspace
Give the first prompt to Adios, then approve the plan.