Zero to Dollar.
0%

Getting Paid

Goal: Charge customers $12/year to publish their page.

What we're doing

Right now, anyone can save their page — but nobody can publish it yet. In this module, we wire up the Publish button so that when someone clicks it, they pay $12/year and their page goes live.

This is how you make money. One payment, one year of a live page.


What is Stripe?

Stripe handles payments. Credit cards, security, receipts, fraud detection — all of it. You never see or touch anyone's card details. You just tell Stripe "charge this person $12" and Stripe does the rest.


Sandbox vs Live

Stripe has two modes:

  • Sandbox — Fake money. Nothing real happens. You can create products, set up subscriptions, and test the entire payment flow using a fake card number. Every Stripe feature works in the sandbox — the only difference is no real money moves.
  • Live mode — Real money. Real customers. Requires you to activate your account with real business information.

We're building everything in the Sandbox. When you create a Stripe account, you land in the sandbox immediately. We'll switch to Live mode in the Go Live module.


Step 1: Create a Stripe account

When you reach this screen, choose Set up with an AI tool — not "Set up in the dashboard".

Choose Set up with an AI tool


Step 2: Connect the Agent to Stripe

Just like we did with Supabase, we're giving the Agent a direct connection to your Stripe account so it can set everything up for you.

Verification

1. Ask the Agent: "Is my Stripe MCP connection fully set up?" It should confirm without an error.

2. Go back to Stripe — keep going until you see this dashboard:

Stripe dashboard — fully configured


Step 3: Set up payments

One prompt. The Agent will install Stripe, create the product, wire up the Publish button, set up webhooks, set up the local testing tunnel, and handle all the security — everything through MCP.

AI PromptSet up Stripe payments — Put this in your IDE

Read my blueprint.txt. You have both a Stripe MCP and a Supabase MCP connected — use both to do ...

Click to expand

Step 4: Test the payment flow

Verification

You click pay with the test card, and your page goes live — just like a real customer would experience.

How cancellations work

If a customer cancels their subscription, their page stays live until the end of the billing period they already paid for. For example, if they paid on January 1st and cancel on March 15th, their page stays live until January 1st of the next year. After that, it becomes a draft again. Stripe handles this automatically — you don't need to do anything.


Step 5: Push to Vercel

AI PromptPush to GitHub and set up production webhook — Put this in your IDE

Save all my work to GitHub. Stage everything, commit it with a clear message about adding Stripe pay...

Click to expand
Warning

If you see a failed deployment — go to vercel.com, open your project, and click the Deployments tab. You'll see the failed deployment listed there:

Overview of a failed Vercel deployment

Click on the failed deployment to see the error message, then copy it:

Clicking into the failed deployment to see and copy the error

Paste it into the Agent and it will fix it.

Verification

The payment flow works on your live Vercel site in the sandbox. Customers can "pay" with the test card and their page goes live.

Ready to move on?