Repository navigation
Hosted billing: refund corrections, lapsed founders, and a page after closing - #1560
Merged
Merged
Conversation
…the subscription The Terms say a billing correction alone does not end a subscription, but any fully refunded charge ended it. A refund carrying dormouse_keep_subscription=true now keeps it, read from Stripe on every delivery since the event embeds no refunds. The newest refund decides, so a mark on an earlier partial refund does not bind the refund that completes the charge. An unmarked full refund still ends it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Terms and FAQ say subscribing again after a founding subscription lapses is at list, but checkout offered founding to anyone not holding a plan. The server now answers foundingLapsed and null founding for an account whose earlier founding subscription ended and kept its seat, by the rule the seat counts use, and refuses founding checkout with PRICE_CHANGED so a stale page rereads. A subscription ended inside the refund window returned its seat, so its buyer may buy again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A refund inside the first-payment window returns a seat; refunding a yearly renewal does not, and a closed cohort never reopens. The Terms said any founding refund did. Moves TERMS_VERSION with the revision. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closing an account signed the page out, so the pre-launch notice sent the person to the devlog's signup a few seconds later. They now land on /closed on the account origin, which confirms the closure and says what happens to any refund. The notice stays for the sign-in gate alone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
S285 said a full refund always ends the subscription, which the correction marker now contradicts; it also pins the mark to Stripe's refund list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deploying mouseterm with
|
| Latest commit: |
a1b5620
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://baff6bb0.mouseterm.pages.dev |
| Branch Preview URL: | https://billing-truth.mouseterm.pages.dev |
dormouse-bot
reviewed
Nov 3, 2026
dormouse-bot
left a comment
Collaborator
There was a problem hiding this comment.
I found nothing to change in the diff. I'm not approving because the description still lists two things to do before merge: the owner's legal review of the Terms wording (TERMS_VERSION 2026-11-03), and a retest of the charge.refunded correction path against real Stripe. Only the README's refund command has been checked in the sandbox so far.
19 of 27 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the billing release gate, #1074. Billing still ships closed. Brings the code and the Terms into line where they disagreed.
dormouse_keep_subscription=truedoes not. The mark is read from Stripe's refund list on every delivery, since the event embeds no refunds at the pinned API version. Audited ruleS285carves it out, andhosted/README.md-> "Refund by hand" says how. The Terms say a billing correction alone does not end a subscription.foundingLapsedfollows the seat count's rule: an ended founding subscription that kept its seat lapses the offer, and one ended inside the 30-day window returned its seat, so that buyer may buy again. A stale page gets 409PRICE_CHANGED. The rule fires when the subscription ends, so a founder's card update whilepast_duekeeps the price past the Terms' 30 days, in the customer's favour.TERMS_VERSIONmoves to 2026-11-03. Needs the owner's legal review./closedon the account origin, which confirms it and states the refund rule. The pre-launch notice andprelaunch.tsare untouched.An account closure deletes the account row, so a closed founder returning under a new account isn't recognized;
docs/specs/pricing.mdsays so.pnpm test:hosted(354),tsc, and website tests (461) pass on the fakes, with each new test mutation-checked; the test suite last ran before the two doc-only commits. In the sandbox I checked only that the README's refund command stores the mark. The event path with real Stripe is still to be retested.🤖 Generated with Claude Code