renewals: detect a subscription Mollie cancelled and revoke at once #83
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment#83
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Problem
A failed renewal only sets
past_due(src/billing.ts:661-692). Access ends when the sweep runs after the 8-day grace (billing.ts:1320-1328). Nothing reads the Mollie subscription's own status or the mandate.Mollie cancels a subscription at once for some failure reasons (for example "account closed"), and after 3 attempts for others. A customer whose subscription Mollie cancelled on day 1 keeps
tier_profor 8 days, and oursubscriptionrow sayspast_duewhile Mollie sayscanceled.Mollie docs
Fix
On a failed renewal, and for every
past_duesubscription in the sweep, callcustomerSubscriptions.get. When Mollie reportscanceled(orsuspended), end the subscription and revoke at once, with the same path the grace expiry uses.Related: #53 (dunning reminder) and #85 (card replacement). This issue is detection only.
Done when
canceledproves the sweep ends the subscription before the grace runs out.Found in the Mollie docs audit of 2026-10-05.
#157 only sets
past_duewhen Mollie reports a subscriptioncanceledorsuspended, and keeps the 8-day grace. This issue still asks for access to end at once when Mollie stops a subscription. Decision needed: whether a Mollie-side stop should skip the grace.Decision: keep the grace. A subscription Mollie cancels or suspends goes
past_due(#157) and keeps the normal 8-day grace. The customer can buy again during the grace and the new period continues from the old period end (#156, shipped in #176). Nothing left to build here.