Websites
Ecommerce website with Stripe: Checkout on your own account
An ecommerce website with Stripe sends buyers to Stripe Checkout to pay and records the order when Stripe confirms it. On OneCraft the agent writes the shop as code, and payments run as a direct charge on the Stripe account you connect, with prices read from your site's database, never from the browser.
From cart to paid
The cart is kept in the visitor's browser. Place order calls a database function that reads each product's price and stock, writes a pending order and returns its id. The site then asks OneCraft to open a Stripe Checkout session for that order on your connected account and sends the buyer there. Stripe's webhook marks the order paid, and the thank you page checks the order's status every 2 seconds for up to 2 minutes.
Direct charges on your Stripe account
Each charge is made on your own Stripe account, so payouts, disputes and refunds are handled in your Stripe dashboard. The site never holds a Stripe key: OneCraft opens the session and reads the amount from the order row. You connect Stripe once in account Settings, Payments, which belongs to your OneCraft account rather than to one site.
Subscriptions and the billing portal
For memberships or monthly plans the agent writes a plans table with a name, price, currency, a month or year interval and features. A signed-in person picks a plan and OneCraft opens a Stripe subscription Checkout from that row. Subscriptions are kept in a table the person can read but not write, and the Stripe billing portal lets them change the card or cancel.
Refunds, receipts and fees
A full refund in Stripe marks the order refunded; a partial one leaves its status as it was. The order stores Stripe's receipt link, which admins see on the order. Each payment carries a platform fee by plan, 2% on Starter, 1% on Pro and 0.5% on Pro+, and Stripe's own processing fees come on top.
In a phone app
An app site uses the same payments broker. Checkout opens in an in-app browser and comes back as returned, cancelled or not connected, and the app then checks the order's status the same way the website does. Subscriptions and the billing portal work in the app too.
How it works, in three steps
Step 1
Describe what you sell
In the generator choose Website and describe the products or plans and their prices, or ask in chat for card payments on a site you already have.
Step 2
Connect Stripe
Connect your Stripe account in account Settings, Payments. Until then orders stay pending and the checkout says online payment is not available yet.
Step 3
Test and publish
Place a test order in the preview, check it turns paid in /admin, then publish from the builder on a paid plan.
Limits worth knowing
- The Free plan cannot take payments or publish; it builds and previews only.
- The platform fee is 2% on Starter, 1% on Pro and 0.5% on Pro+, with Stripe's own fees on top.
- Payments run through Stripe only; there is no PayPal and no cash on delivery flow.
- Card fields are never shown on your site; every payment happens on Stripe's Checkout page.
- Until Stripe is connected, orders stay pending and buyers are told the order will be confirmed by email.
- A hosted database comes with every plan, or you can connect your own Supabase account in the site's Settings, Database card.
Questions people ask
Do I need a Stripe account before I build?
No. You can generate and preview the shop first. Orders placed before Stripe is connected stay pending, and the checkout tells the buyer online payment is not available yet and that the order will be confirmed by email. Connect Stripe in account Settings, Payments when you are ready; publishing and taking payments both need a paid plan.
Why are prices read from the database and not the page?
Because anything in the browser can be changed by the person using it. The place_order function prices every line from the products table, and OneCraft opens Checkout for the total stored on the order, so a buyer who edits the page cannot pay less. Discount codes and shipping are worked out inside the same function for the same reason.
Can buyers pay without creating an account?
Yes, for one-off orders. A guest gives a name and email at checkout and pays on Stripe. Since a guest cannot read orders, the thank you page reads only that order's status and receipt link through a narrow function. Subscriptions are different: the person must be signed in, because the subscription is tied to their account on your site.
Who handles disputes and chargebacks?
You do, in your Stripe dashboard. The charges are made directly on your connected account, so Stripe treats your business as the merchant: disputes, payouts and refunds are all managed there. Your site only shows the status Stripe reports through the webhook, such as paid or refunded, on the order in your admin.
Does the platform fee change with my plan?
Yes. The fee is taken from each payment according to your OneCraft plan: 2% on Starter, 1% on Pro and 0.5% on Pro+. Stripe's own card fees are separate and come on top. The Free plan cannot take payments at all, so a shop on Free can be built and previewed but cannot sell.
Can one site sell subscriptions and one-off products?
Yes. One-off products go through orders and place_order; recurring plans come from a plans table with a month or year interval. Both use the Stripe account you connected. A subscriber counts as active while their subscription row is active or trialing and its period end is in the future, which is how members-only pages decide what to show.
Make your own website
The button opens the generator with this use case already described. Change the wording to match yours, generate, then edit anything you like.
Create a website with OneCraftNot ready to start? See the AI website builder page first.
Related pages
AI online store builder: a shop written as code for your own site
An AI online store builder writes the shop for you: product pages, a cart, a checkout and an admin to run it. On OneCraft an agent writes all of it as code into your website, keeps products and orders in the site's own database, and takes card payments through Stripe Checkout on your own Stripe account.
Add my own video clip
Not everything should be generated. If you already have footage, six scene layouts exist to play it, with a title beside it, three icon bullets, a quote, a counting number, or full screen with a caption over the top. The clip is trimmed and fitted in the inspector rather than in a separate editor.
Vertical video maker
If you only make one vertical file, it has to survive four different sets of interface furniture. Each platform covers a different part of the frame, so the design target is not any one safe zone, it is the union of all of them, and that union is a smaller box than most people expect.
More finished work of this kind is on the website examples hub.
Written and checked by the OneCraft team. Last checked .