4 Commits
Author SHA1 Message Date
LouisandClaude d48288536f Stripe setup: privacy and terms links in the customer portal, kept up to date (#1242)
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-01 10:06:59 +00:00
LouisandClaude df86723e6b Plans: a real plans page, in Coucou and the onboarding; Choose goes to Stripe; dollars (#1241)
- The plans page (Coucou › Plans and the onboarding's Cloud page, where it scrolls over the
  troupe): a card per offer (its name, what it is, the price, three lines of what you get, its
  button), a comparison table (everything on the Mac, open source, works while the Mac sleeps,
  Mochis in the Cloud, AI, no key, yearly price, cancel anytime), then five questions.
- Choose: GitHub sign-in first when needed (the code shown on the page), then Stripe Checkout in
  the browser. In the onboarding the Cloud page opens at the end for the key and the GitHub app.
- Prices in dollars: the Cloud says usd, and stripe-setup moves the price's lookup key to a
  price (the euro one is archived).
- The moon comes out of the notch and goes back into it, as the sun.
- The Plans button keeps its word on one line.


Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-01 09:43:58 +00:00
Claude ff3ef66ecb cloud: the Stripe setup takes a restricted key (rk_…)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-30 17:27:20 +00:00
Claude 5293c0ded0 Coucou Cloud: Stripe and the offers
The Cloud is now sold: Free (everything on the Mac, unchanged) and
« Cloud · your key » at 9 €/month (the AI on the user's own Anthropic key).
Solo, Pro and Max are listed as coming, until the credit offers open.

Worker (billing.ts): the offers in one place (GET /v1/plans, public, so a
price changes without an app update); Stripe Checkout and the customer
portal, opened in the browser (the card never touches Coucou); the signed
Stripe webhook keeps the subscription's state; a user's Mochis run in the
Cloud only with an active subscription (past_due included while Stripe
retries) or a login in COMP_LOGINS (Louis-CFM). Without STRIPE_SECRET_KEY,
billing is off. Under the VAT franchise: no VAT, the invoice footer says
« TVA non applicable, article 293 B du CGI »; STRIPE_TAX turns Stripe Tax on.
The new user columns are added by the Worker itself.
scripts/stripe-setup.mjs makes the price, the portal and the webhook, and
pipes the webhook's secret straight into wrangler.

brain: `cloud subscribe`, `cloud billing` (--json gives the URL to the app);
`cloud status` carries the offer and the offers.

App: the offers view (CloudPlans.swift, for the onboarding too), a
« Choose your offer » step in the Cloud setup, the offer on the account
card (renews / ends / payment failed, Manage, See the offers); the switch
to move a Mochi needs the offer. 28 strings in the 16 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-30 16:47:31 +00:00