payments

Installation
SKILL.md

Payments

Take money with the least code that works. Stripe is the default for a solo founder: hosted checkout, a hosted billing portal, and good test tools.

Stage 1: The first customers

Use a Stripe Payment Link or an invoice. No billing code. The founder grants access by hand after each payment. This works for the first 10 customers and often longer. Build billing in the app when granting access by hand starts taking real time.

Stage 2: Billing in the app

  1. Create products and prices in the Stripe Dashboard, not in code. Reference them by price ID or lookup key.
  2. Use Stripe Checkout (the hosted payment page). Do not build a card form.
  3. Use the Customer Portal for card updates, plan changes, cancellations, and invoices. Do not build a billing page. Set cancellation to happen at the end of the billing period, and turn on the cancellation-reason question.
  4. Store each customer's subscription status in the database, updated only from webhooks.
  5. Set trials when you create the Checkout session or the subscription.

Webhooks

Grant access from the verified webhook, never from the redirect page. The redirect can fail, and anyone can load it. Handle at least:

Installs
55
GitHub Stars
272
First Seen
Feb 19, 2026