Ch09 Payments And Launch
# Chapter 9 prompts — Add a Price Tag and Launch
**Hour block: hours 41-46** of the book's 48-hour build.
> **Access requirement:** every prompt below is pasted into an interactive Claude
> Code terminal session, and Claude Code requires Pro or higher — the free plan
> does not include it (ch03:31). This repository never runs any of these prompts,
> and neither does its CI. They are documentation, not executable code.
> ⚠ **The revenue figures in this chapter are the book's ILLUSTRATIVE examples, not
> projections, forecasts, or typical results.** Nothing here is a promise or
> estimate of earnings, and **most software projects earn nothing**. The book says
> so itself: "A task tracker won't make you a millionaire" (ch09:252). Read
> [`../../DISCLAIMER.md`](../../DISCLAIMER.md) before treating any number on this
> page as a target.
**The full pack, with every prompt transcribed verbatim: [`prompts/ch09-payments-and-launch.md`](../../prompts/ch09-payments-and-launch.md)**
The pack is the source of truth for exact prompt text; this page is the guide to
navigating it.
## What this chapter's prompts do
This chapter closes the gap between "it works" and "it earns money": a landing
page, a price, and a button that takes payment. The prompts add Stripe Checkout
with a free/Pro tier split, wire the webhook that makes subscription status
reliable even when a redirect fails, walk through four gotchas that come up on
every Stripe integration, adjust pricing (a second price point for new signups,
an annual discount), build a conversion-focused landing page section by section,
and close with a five-point launch checklist and the four manual steps to flip
Stripe from test mode to live mode.
## When you use them
Hours 41-46, after the app is secure and tested (Chapter 7) and cleaned up
(Chapter 8). Before you start: a free Stripe account (five minutes to create), a
product and price configured in the Stripe dashboard, and the Stripe CLI installed
locally for webhook testing — Claude writes the application code, but the Stripe
account setup itself is manual, by design.
## Index of every prompt in the pack
| # | Prompt | Cite | What it does |
|---|---|---|---|
| 1 | ⭐ Add Stripe integration | ch09:17-19 | Builds the pricing page, Checkout flow, webhook handler, and the free-tier task limit in one prompt |
| 2 | Fix hardcoded success/cancel URLs | ch09:92-114 | Replaces a hardcoded `localhost:3000` with an environment variable so the redirect works in production |
| 3 | Fix a webhook that fires but doesn't update | ch09:92-114 | Confirms the webhook route is reachable, the event parses, and the right user gets updated |
| 4 | Fix the free-tier bypass | ch09:92-114 | Adds the 10-task limit check server-side, in `createTask` itself, not just the UI |
| 5 | Add a second price point | ch09:116-150 | Points new signups at a raised price while grandfathering existing subscribers |
| 6 | Add an annual toggle | ch09:116-150 | Adds a monthly/annual pricing toggle defaulting to annual, with the savings labeled |
| 7 | Build the landing page | ch09:152-215 | Builds the full landing page: headline, features, pricing, CTA, footer |
| 8 | Hero section | ch09:177-211 | Headline, subheadline, CTA, and a screenshot, stacking on mobile |
| 9 | Features section | ch09:177-211 | Three feature cards with icons, stacking on mobile |
| 10 | Pricing section | ch09:177-211 | Free vs. Pro cards with a "Most Popular" badge on Pro |
| 11 | Footer | ch09:177-211 | A minimal footer: privacy, terms, a social placeholder, copyright |
| 12 | Screenshot loop on the landing page | ch09:174 | Applies the Chapter 4 loop to fix headline size, CTA visibility, and pricing contrast |
| 13 | Terms of Service page | ch09:245 | A basic ToS covering termination, data handling, and liability |
13 prompts.
## The signature prompts
### ⭐ The Stripe integration prompt (ch09:17-19)when to use it
Community prompt sourced from the open-source GitHub repo regardo911/claude-code-beginners (MIT). A "Ch09 Payments And Launch" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
regardo911/claude-code-beginners · MIT