fix(billing): detect a subscription Mollie cancelled or suspended #142
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#142
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?
Mollie sends no webhook for a subscription status change:
https://docs.mollie.com/docs/recurring-payments
Revoking a mandate cancels its subscriptions (https://docs.mollie.com/reference/revoke-mandate), and a subscription can become
suspended.Failing case: the mandate is revoked in the Mollie dashboard. Mollie cancels the subscription and creates no payment. Locally it stays
active, reminders still promise a charge (src/billing.ts:382-422,:1784-1792), and access ends silently at period end plus grace.This also covers a lost failure webhook: reconcile replays only completed payments (
:1954).Fix: in the sweep, for live auto-renew subscriptions near or past period end, read the Mollie subscription. If it is
canceledorsuspended, mark the subscriptionpast_dueand returnnextCharge: null.