Skip to content

Hosted: run the local entry on Stripe test mode, and write down the Stripe setup - #1559

Merged
nedtwigg merged 1 commit into
mainfrom
stripe-sandbox
Nov 4, 2026
Merged

nedtwigg merged 1 commit into
mainfrom
stripe-sandbox

Conversation

@nedtwigg

@nedtwigg nedtwigg commented Nov 3, 2026

Copy link
Copy Markdown
Member

Part of the billing release gate, #1074. Billing still ships closed; this changes nothing in production.

  • Local entry on real Stripe: hosted/server/dev.ts uses the five STRIPE_* bindings when they are all in its environment, and refuses a live key. Without them it uses StripeDev as before.
  • hosted/README.md -> "Run against Stripe test mode": stripe listen delivers events at the account's default API version even with --use-configured-webhooks, which billing refuses with 400, so a real endpoint on the pinned version and a tunnel limited to the webhook path are needed. Also covers test clocks.
  • hosted/README.md -> "Stripe setup": the account settings billing assumes, which were written down nowhere: Prices, Tax, the portal with plan switching off, 2-month retries then cancel, customer emails, and the webhook endpoint with its pinned version and events.
  • Stale line: acceptance step 7 said dormouse-hosted has no Cron Trigger; it has billing's */10 * * * *.

Exercised against a Stripe sandbox on 2026-11-03: hosted/server typechecks, and the local entry ran the purchase, refund, withdrawal, closure, failed-payment, dispute, and resent-event scenarios. Results go on #1074. No automated test covers the switch, since nothing tests dev.ts.

🤖 Generated with Claude Code

…tripe setup

The local entry takes the five STRIPE_* bindings from its environment and runs
real Stripe, refusing a live key, so billing can be exercised beyond StripeDev.
The README says how, including that `stripe listen` cannot carry billing's
webhook, and gains the account setup a release needs: Prices, Tax, the portal,
retries, emails, and an endpoint on the pinned API version with its events.
It also stops saying the account Worker has no Cron Trigger.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 59964bd
Status: ✅  Deploy successful!
Preview URL: https://3b8165b9.mouseterm.pages.dev
Branch Preview URL: https://stripe-sandbox.mouseterm.pages.dev

View logs

@nedtwigg
nedtwigg merged commit 6c252bf into main Nov 4, 2026
14 checks passed
@nedtwigg
nedtwigg deleted the stripe-sandbox branch November 4, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants