Start charging money for your app: the 14-fix payments checklist
Written for a web app that takes cards through Stripe (Checkout or Elements + Billing); the same ideas apply to other processors. General information, not legal or tax advice: have a professional review your setup.
The short version
Taking the first real payment is the wrong moment to find out your setup is wrong. Build and break everything in test mode, let the server decide prices and access, treat the webhook as the source of truth, and make the money side honest: tax, a statement name people recognise, a renewal price they saw, a cancel button that works, a refund policy.
The checklist (the 14 items in the reel)
| # | Fix | Why / where it comes from |
|---|---|---|
| 1 | Keep Stripe in test mode until everything works | Test mode uses separate keys and fake cards (4242 4242 4242 4242 succeeds); switch to live keys only after the full run passes |
| 2 | Never trust a price from the browser | Anything the browser sends can be edited. Create the Checkout Session / PaymentIntent on the server from a price ID you control |
| 3 | Unlock access from the webhook, not the success page | The redirect can be missed (closed tab, lost signal) or faked by visiting the URL. Stripe's fulfilment docs trigger fulfilment from the checkout.session.completed event |
| 4 | Verify every webhook signature | Check the Stripe-Signature header against the raw request body with your endpoint secret, or anyone can post a fake "paid" event |
| 5 | Handle duplicate webhooks | Events can arrive more than once and out of order. Key your handler on the event or Checkout Session ID so a repeat does nothing |
| 6 | Hide secret keys from the frontend | Only the publishable key ships to the browser. Secret and webhook-signing keys live in server environment variables, never in git |
| 7 | Test a declined card | Use Stripe's decline test cards (e.g. 4000 0000 0000 0002) and check the user sees a clear message and gets no access |
| 8 | Set up sales tax and VAT | Selling digital products can create tax obligations by country and state. Stripe Tax can calculate and collect; registering and filing is still on you or an advisor |
| 9 | Put a clear name on the card statement | Set the statement descriptor to a name customers recognise. "Who is this?" is a common reason for a dispute |
| 10 | Show the renewal price up front | Say the price, how often it renews and when, before they pay. In the US, ROSCA requires clear disclosure of material terms and consent for recurring charges |
| 11 | Email people when a payment fails | Turn on Stripe's failed-payment emails and Smart Retries, and tell the user how to update their card |
| 12 | Add a customer portal | Stripe's customer portal lets people update a card, see invoices and cancel without emailing you |
| 13 | Make cancelling as easy as signing up | ROSCA requires a simple cancellation mechanism for online subscriptions. The FTC's separate "click to cancel" rule was struck down by the Eighth Circuit on 8 July 2025 for procedural reasons, but ROSCA and several state laws still apply |
| 14 | Write a refund policy | State it where people pay and in your terms. Some places require one, and it reduces disputes |
Copy these prompts
Claude, I want to start charging money for my app. Audit this codebase against the 14-item payments checklist below. For each item, say PASS, FAIL or NOT APPLICABLE, point to the file and line, and propose the smallest fix. Do not change anything until I approve. Items: test mode and live keys kept separate; prices set on the server; access unlocked from a webhook, not the success page; webhook signatures verified on the raw body; duplicate webhook events handled; secret keys never in the frontend or git; declined-card and 3D Secure paths tested; sales tax and VAT; a clear card statement name; renewal price shown before payment; failed-payment emails; customer portal; cancelling as easy as signing up; a refund policy. Flag anything you are unsure about instead of guessing.
Claude, show me how my app unlocks access after a payment. If it happens on the success page, move it into a webhook handler for checkout.session.completed that verifies the Stripe signature on the raw body, skips events it has already processed, and only then grants access. Then give me the Stripe CLI commands to test it, including closing the tab before the redirect.
If you are building…
- Do 1-6 before you write a single line of billing UI. They are the ones that lose money or give it away.
- Run the whole purchase in test mode with the Stripe CLI forwarding webhooks to your machine, then close the tab on the success page and check access still unlocks.
- Set the statement descriptor and the cancel flow before the first customer, not after the first dispute.
Run this on your codebase
Open Claude Code in your app and paste the first prompt above. It reports PASS / FAIL per item with the file and the smallest fix, and changes nothing until you approve.
Limits
It covers the common technical and customer-facing fixes for a card-based web app. It does not replace advice on tax registration and filing, sales terms, app-store billing rules (Apple and Google have their own), PCI beyond using hosted fields, or rules in your country. Have a professional review your setup.