fix(billing): detect a subscription Mollie cancelled or suspended #142

Stängd
öppnade 2026-10-12 13:14:59 +00:00 av supernaut · 0 kommentarer
Ägare

Mollie sends no webhook for a subscription status change:

We do not provide webhooks specifically for status changes of a Subscription itself.

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 canceled or suspended, mark the subscription past_due and return nextCharge: null.

Mollie sends no webhook for a subscription status change: > We do not provide webhooks specifically for status changes of a Subscription itself. 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 `canceled` or `suspended`, mark the subscription `past_due` and return `nextCharge: null`.
supernaut lade till detta till projektet Bitborg Payment 2026-10-12 13:16:11 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-payment#142
Ingen beskrivning angiven.