The club has told its members that the site opens tomorrow. This evening the treasurer decides to be the first member to pay on it. She signs in on her phone, opens the Join page, and types in her own card number, and the checkout page will not take the card. She tries a second card with the same result, and messages you to ask whether the site is broken. Nothing is broken. Payments are still in test mode, where the payment company accepts only the card numbers it publishes for testing, and the site does not yet have the live keys it needs before it can take real money.
Everything else is in place. The site is deployed at runclub.example, you reviewed its code in Review what the AI built, and every check in The pre-flight check: secrets, money, data, and the law passed. To launch a site is to open it to the people it was built for, which for the club means that members can pay real money and have been told the address. Launching is not the same as deploying: a deploy moves code to the host, and you have done that many times since Part I. In this chapter you finish the Build Plan from what you actually built, write down what has to be true before you call the site launched, switch payments to live mode, make the first real payment yourself, find it in the host's log, and tell the club.
Finish the Build Plan from what you built
The Build Plan is one page with six fields. You filled in five of them in Decide what goes in your first version, before anything was built, and you started the remaining one, the stack, during the pre-flight check. The stack field has one row for each layer in the part called The Technology Stack: frontend, backend, data, hosting, auth, and monitoring. Fill in every row from what the site uses today, not from what you planned. Here is the club's:
4. The stack
Frontend: JavaScript with Next.js. Every page checked at
phone width. Installs on a phone from the browser.
Backend: Next.js on the host's servers. Checks that a member
has paid before it sends a member-only page, and
receives the payment company's messages.
Data: Supabase database: members, RSVPs, runs, and orders,
with a rule on every table. No card numbers.
Hosting: Vercel, paid plan, monthly budget set. The domain
name runclub.example is in my own account.
Auth: Sign-in link by email, or Google, through Supabase.
Visitors see Home, Trails, and Join. Members see
the week's run and only their own details.
Monitoring: The host's log. If a payment succeeds and the member
is not marked as paid within five minutes, email me.
Billing alerts go to the same inbox.
You wrote two of those rows in earlier chapters. The Auth row is the three-line spec from Auth, who you are vs. what you can do, and the Monitoring row starts from the one-sentence spec in Monitoring, how you know it broke (and what it costs): the worst failure you would not notice, the number that shows it, and where the alert goes. If you cannot fill in a row, ask the agent what the site uses for that layer and read its answer before launch, because a blank row means there is a part of your own site that you cannot yet describe.
Then read the other five fields again and correct anything that changed while you built. The club's journey in field 3 is still accurate: a member opens the Join page, creates an account, pays, sees this week's run, and RSVPs. Field 5 still says that the first version has no new AI.
The plan needs one more line before launch day. A done-when line is one sentence that says what has to be true before you call the site launched, written so that anyone could check it. Take it from the user's journey in field 3, and make yourself the user. The club's reads:
Done when: I have joined on the live site from my phone, paid
40 dollars with my own card, and opened this week's
run, and the payment shows in the payment company's
dashboard and in the host's log.
The Build Plan has no field for this line, so keep it in your idea file, next to the "not yet" list.
Nothing on the page is a new decision. You wrote the first three fields before the first version existed, and every row of the stack names something that is already running.
On launch day the Build Plan is a record of decisions, not a proposal: every field holds a decision you have already made and built, and the done-when line is your written definition of ready.
The obvious objection: the site is not ready
You may feel at this point that the site is not ready. But "ready" has a written definition, and you wrote it. The done-when line says what the site must do, and it already does all of it in test mode, where you ran the five payment tests. The pre-flight check covers what must not go wrong, and every row passed. Whatever remains after those two lists is polish, and real members will show you what to polish faster than you can guess it.
Switch payments from test mode to live mode
Live mode is your real account at the payment company, where cards are charged and money moves. In Take payments for memberships and a shop you learned that test mode and live mode each have their own keys. Switching means giving the live site the live keys. A few things have to be set up in live mode first, because nothing you created in test mode exists there.
- Activate your account at the payment company. It asks for your business details and for the bank account your money should be paid into, and it can ask for more information before it lets you take live payments, so do this a few days before launch day. While you are there, check the name that will appear on members' card statements.
- Add what you sell again, in live mode. The membership and the two shop items you created in test mode do not exist in live mode. Create them again with the same prices, and ask the agent whether the site needs their new ids.
- Register your site's address for messages again, in live mode. The payment company sends its messages to an address on your site, and you gave it that address in test mode. Give it the same address in live mode. It then shows you a new signing secret, because the test mode signing secret does not work for live messages.
- Put the live keys on the host, for the live site only. On the host's Environment Variables screen, each value has a setting for which copies of the site use it. Give the live secret key and the live signing secret to Production only, and leave the test keys in place for the preview copies and in the .env file on your laptop. Paste the live keys in yourself. The agent does not need to see them, so do not paste them into a chat.
- Deploy again. A change on the Environment Variables screen applies only to deploys made after it, so the live site keeps using the test keys until you deploy once more.
The drawing shows the same address before and after the switch. With the test keys, runclub.example takes only the test card and no real money moves. With the live keys, it takes real cards from members, under the limits you set in the pre-flight check.
The launch itself is a small step: you give the live site the live keys, and the same pages that took test payments now take real ones. You did everything that made this safe before you switched.
Make the first real payment yourself, and find it in the host's log
The done-when line says that you go first. You are a member of the club and you owe this year's dues like everyone else, so your own membership is the first real payment. It is a real purchase and not a test. The payment company's rules do not allow test charges with real cards in live mode, which is one more reason to finish every test in test mode. Open runclub.example on your phone, sign in, and pay the 40 dollars with your own card. Then check three places:
- The site. The members' page opens for you.
- The payment company's dashboard, in live mode. The payment is listed there.
- The host's log. It has a line for the request that the payment company sent to your site when the payment succeeded:
09:12:44 POST /api/stripe/webhook 200 0.3s
You did not send that request. The payment company sent it, to the address you registered in step 3, and the 200 is the status code that means your site received the message and accepted it. If the line shows 400 instead, check first whether the host still has the test mode signing secret, because your site rejects any message whose signature it cannot check.
In your own project, the first real payment should also be a real purchase of something you want. If your site sells nothing you would buy, ask your first customer to tell you as soon as they have paid, and check the same three places.
Tell the club
Now tell the people the site was built for. The club's message goes to the group chat and by email, and it covers:
- the address, runclub.example;
- what a member does there: join, pay for the year, and see each week's run;
- how to put the site on a phone, with a link to the page of install steps from Turn your site into a phone app, and decide about the app stores;
- where to write when something goes wrong, which is help@runclub.example.
An hour later the treasurer pays with the card that was refused the night before, and the log shows a second line for the same endpoint. You were not at your laptop when it happened. The site took the payment, marked her as paid, and opened the members' page for her, under the budget, the caps, and the rate limits you set in the pre-flight check.
Keep the payment company's dashboard and the host's log open for the rest of the day. If payments go wrong, use the kill switch for the Join button from the pre-flight check, and refund any payment that should not have gone through.
Try it now
This drill takes about thirty minutes, and the first path costs nothing. On the second path you make one real purchase on your own site, which for the club is the 40 dollars of dues you owe anyway. You arrive with a site that passed the pre-flight check and a Build Plan with one field unfinished. You leave with the finished plan, your done-when line, and a live site that has taken its first real payment.
No setup: Open the Build Plan and finish the stack field one row at a time, for the running-club site as this chapter describes it or for the site you are planning. Read the other five fields again and correct anything that has changed. The form saves on your device and exports a PDF or a Markdown file. Then write two things in your idea file: your done-when line, and the message you would send your first users on launch day, with the address, what they can do there, and where to write for help.
With your tools: Open Claude Code in the running-club folder, or in your own project, and type: "List what this site uses for frontend, backend, data, hosting, auth, and monitoring, one line each, from the code and the settings." Use the answer to finish the stack field, and ask about any line that surprises you. Then follow the five steps to switch payments to live mode, and paste the live keys into the host yourself. Make the first real payment from your phone, check the site, the payment company's dashboard, and the host's log, and send your launch message. Codex and Cursor accept the same request in their chat panels. If nothing is installed yet, The Setup Clinic covers the install.
Either way, finish by adding these lines to the idea file. If you took the first path, write the first two and add the rest on your own launch day.
Build Plan: all six fields filled in; the stack from what is running
Done when: I have joined on the live site, paid with my own
card, and opened this week's run
Live: payments in live mode since November; test keys
stay on my laptop and in the preview copies
First paid: my own membership; seen in the dashboard
and in the host's log
Told: the club, in the group chat and by email
Chapter Summary
- To launch a site is to open it to the people it was built for. A deploy moves code to the host, and you have deployed many times before the launch.
- On launch day the Build Plan is a record of decisions, not a proposal. You finish the stack field from what the site uses today, and a row you cannot fill in means there is a part of your site that you cannot yet describe.
- The done-when line is your written definition of ready: one sentence, taken from the user's journey, that anyone could check.
- Nothing you created in test mode exists in live mode. Before you switch, activate your account at the payment company, add what you sell again, and register your site's address for messages again to get the live signing secret.
- Give the live keys to the live site only, paste them into the host yourself, and deploy again, because a changed environment variable applies only to later deploys.
- Make the first real payment yourself, as a real purchase, and check three places: the site, the payment company's dashboard, and the host's log.
- The payment company's message appears in the host's log as a request you did not send. A 200 means your site accepted it, and if you see a 400 on launch day, check first whether the host still has the test mode signing secret.
- After launch, send every change to payments, sign-in, or member-only pages to the preview copy and run the tests there before it reaches the live site.
- Your artifacts are the finished Build Plan and the idea file, which now has your done-when line and the month payments went live.
- The site is live and real members are using it. In The law of what you collect: privacy, consent, and tracking you cover what the law requires of a site that collects their data.
Sources
- Vercel deployment documentation (last verified July 2026).
- Vercel documentation on environment variables, for choosing which environments a value applies to and for changes applying only to new deployments (last verified November 2026).
- Stripe documentation on API keys (sandboxes, live mode, and switching to live mode), the go-live checklist, the account checklist, setting up your account, webhooks (a separate signing secret for each endpoint in each mode), and testing (the rule against testing in live mode with real card details) (last verified November 2026).