To add sign-ups and payments to an app you built with AI, give every user an account with one ID, sell through Stripe Checkout, let a webhook on your server record who paid and check the plan on the server before every paid feature. Wednesday's Do it yourself plan gives your AI the playbooks to wire all of it.

What does a working payment setup look like?

Once it's right, the money side runs while you sleep. Someone signs up with email or Google, picks a plan, pays on Stripe's checkout page and lands back in your app with the paid features switched on. Next month Stripe charges them again, your app stays in step, and when they upgrade or cancel, your app knows within seconds.

Four parts make that happen, and every builder tool can produce all four:

  • Accounts. Each person gets one user ID, and every row of their data carries it.
  • Checkout. Your server asks Stripe for a checkout page for that user and sends them to it.
  • A webhook. Stripe tells your server when someone has paid, and your server writes the plan onto the user's record.
  • A plan check. Before any paid feature runs, your server reads that record and decides.

The webhook is the one most AI-built apps skip, and it's the one that matters most. Stripe's fulfillment guide says webhooks are required, because a customer can pay and lose their internet connection before your landing page loads. Stripe also retries webhook delivery several times if your server misses one, so a webhook is how every payment reaches your app.

Why does Stripe work in the builder and break for real customers?

Because the builder's preview does the easy path well. One person signs up, pays with a test card and sees the success page. Real customers pay from their phone on a train, open two tabs, upgrade twice or come back a month later. Each of those finds a gap.

The table covers what founders type into Google when it breaks, what to look at and how to fix it.

What you see What to check The fix
Customer paid but the account didn't upgrade Does the upgrade happen on the thank-you page? Upgrade from a checkout.session.completed webhook on the server
Works in test mode, fails once you go live Live mode has its own keys and its own webhook endpoint Add the live keys and register the live webhook with its own signing secret
Someone on the free plan can use paid features Is the plan checked in the browser? Check the plan on the server before every paid action
A customer has two subscriptions Does each click create a new Stripe customer? Save the Stripe customer ID on the user and reuse it
Cancelled users keep paid access Does the app hear about cancellations? Handle subscription updated and deleted events too
Your secret key is in the browser's code Search the front end for sk_live and sk_test Move every Stripe call behind your server and rotate the key

If that last row turns up anything, is your vibe-coded app secure walks through the rest of the checks worth doing before launch.

How do I set up sign-ups the right way?

Start with accounts, because payments hang off them. Use the sign-in your builder already offers, whether that's Supabase, Firebase or another provider, and turn on email and Google. Then make one rule for your data: every table that holds customer data has a user ID column, and every query filters by it.

Ask your AI to add a row-level rule on each table so a user can only read their own rows. Then prove it. Sign up as a second person and try to open the first person's data. If you can't see it, your accounts are ready to carry payments.

How do I add payments step by step?

Here's the order that works, and each step is a prompt you can give your AI tool today.

  1. Create your products and prices in Stripe's sandbox. Keep it to one or two plans for now. You can add tiers and raise prices once customers are paying.
  2. Store the Stripe customer ID on each user. Create it the first time someone goes to pay, and reuse it every time after.
  3. Create the checkout page from your server. Your server calls Stripe with the price and the customer ID, then sends the user to the page Stripe returns.
  4. Add a webhook endpoint on your server. Verify Stripe's signature on every event, then write the plan and its status onto the user's record when a checkout completes.
  5. Listen for changes. Handle subscription updates and cancellations, so your records always match what Stripe is charging.
  6. Check the plan on the server. Every paid feature asks the server first. Hiding a button is a nice touch for the screen, and the server check is what actually protects the feature.
  7. Give customers a way to manage their plan. Stripe's customer portal lets people upgrade, change cards and cancel without emailing you.

Then test it like a customer. Stripe's testing guide gives you the card 4242 4242 4242 4242 with any future date and any three-digit code, and says sandbox transactions "don't move funds". Pay, upgrade, cancel and pay again, from a phone and from a second account. Stripe's command line tool can forward webhook events to your app on your own machine, so you see each one land.

What does this open up once it works?

Revenue you can build on. Sage is the proof of how far it goes. Its founders came to us with a front end built with an early AI coding tool and no engineering team. In the first sprint, people could log in, billing was set up and Stripe was integrated. Sage then launched to a waitlist of 100 people and collected more than $50,000 in its first week. It went from $0 to about $104K in monthly recurring revenue in eight months. Co-founder Nick put the starting point plainly: "We were at zero dollars of MRR when we started." You can read how Sage went from idea to recurring revenue.

With payments solid, your next moves get bigger. You can sell annual plans, add a higher tier, or take pre-orders for a feature before you build it. And your first paying customers can sign up without you watching every charge.

What can I do this week?

On Monday, search your front end for any Stripe secret key and move it behind your server. On Tuesday, add the user ID rule to every table and test it from a second account. Midweek, build checkout and the webhook in the sandbox. By Friday, run the full journey with test cards on your phone, then switch on live keys and the live webhook.

If the app has bigger cracks than payments, how to make a vibe-coded app ready for real users covers the rest. And if you'd rather have a team take it from here, fractional CTO or product studio helps you pick who.

Do it yourself, free

Connect the free Wednesday MCP to Claude Code, Cursor, ChatGPT or Claude with one Google sign-in, then run the sign-ups and paid plans job. It ties payments to the right account, enforces every plan on the server and runs each sign-in and upgrade path end to end. When you want every playbook your team can use, the Do it yourself plan is $199/mo for at least four months.

Questions

How do I add payments to an app I built with AI?

Give every user an account with one ID, sell through Stripe Checkout, let a webhook on your server record who paid, and check the user's plan on the server before every paid feature. Test it all with Stripe's test cards first.

Why does my customer pay in Stripe but their account never upgrades?

Usually the app upgrades people from the thank-you page instead of a webhook. Stripe's own guide says you can't rely on that page, because a customer can pay and lose their connection before it loads.

Can I keep my Stripe secret key in the app's front end?

No. The secret key belongs on your server only. The front end gets the publishable key, and every call that creates a charge or reads a customer runs on the server.

How do I test payments without real money?

Use Stripe's sandbox with your test keys and the test card 4242 4242 4242 4242, any future expiry date and any three-digit code. Stripe's testing guide says these transactions don't move funds.

Can I get the AI to set this up for me?

Yes. Wednesday's Do it yourself plan, $199/mo for at least four months, gives you the AI we build with, and your AI tool runs sign-ups and paid plans end to end on your app.

Originally published at wednesday.is.