You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e691123
Browse filesBrowse the repository at this point in the historyBrowse files
fix(billing): release audit follow-ups for v0.9.66 billing (#10457)
* fix(billing): release audit follow-ups for v0.9.66 billing
- a paid invoice unblocks every member still blocked for payment, not only when the org owner is
- a plan switch reads the subscription and its usage pool in one snapshot under its claim, so a seat
sync cannot price one seat count against a limit set for another
- a hosted-key plan check that cannot read the balance fails with a plain message, not the raw
database error
- the Team-during-trial message covers a canceled trial
* fix(billing): price a plan switch from the seats locked at record time
A seat sync takes no switch claim and can land while Stripe applies the change, so the new
allowance comes from the subscription row locked in the recording transaction. The integration
fixture builds its event with the shared Stripe event helper.
* fix(billing): price a retried switch's old allowance from the plan it left
A retry finds the subscription webhook may already have recorded the new plan, so the old
allowance always comes from the request's plan and interval, with the locked seat count for the
live limit. A switch is refused when the subscription moved to another payer since it was read.
The invoice fixture pays from the subscription's own Stripe customer.
Copy file name to clipboardExpand all lines: apps/sim/lib/billing/authorization.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ async function assertNoPersonalTrial(userId: string): Promise<void> {
85
85
logger.warn('Blocking team upgrade - personal plan is in its free trial',{ userId })
86
86
thrownewAPIError('CONFLICT',{
87
87
message:
88
-
'Your Pro free trial has to end before you can move to a Team plan. End the trial now from Settings > Billing, then upgrade.',
88
+
'Your Pro free trial has to end before you can move to a Team plan. End it from Settings > Billing (restore it first if you canceled it), or wait for it to end, then upgrade.',
0 commit comments