fix(account): show a failed renewal and its grace end #375

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

A failed renewal is invisible in the portal.

  • src/lib/billing-client.ts:47-64: SubscriptionStatus has no graceEndsAt.
  • src/lib/renewal.ts:22,36-45: past_due returns null, with a comment that another notice must explain it. None exists.
  • No email goes out.

The billing service already returns graceEndsAt.

Failing case: the renewal fails and the subscription goes past_due. The account page shows no warning and no date. Access ends at the end of the grace period without notice.

Fix: add graceEndsAt to the client type. Show a notice on the account and subscription pages when the status is past_due, with the grace end date and a way to pay. Optionally send one email the first time a reminder run sees past_due.

Pairs with the billing-side fixes for renewal dates and Mollie-side cancellations in bitborg-payment.

A failed renewal is invisible in the portal. - `src/lib/billing-client.ts:47-64`: `SubscriptionStatus` has no `graceEndsAt`. - `src/lib/renewal.ts:22,36-45`: `past_due` returns null, with a comment that another notice must explain it. None exists. - No email goes out. The billing service already returns `graceEndsAt`. Failing case: the renewal fails and the subscription goes `past_due`. The account page shows no warning and no date. Access ends at the end of the grace period without notice. Fix: add `graceEndsAt` to the client type. Show a notice on the account and subscription pages when the status is `past_due`, with the grace end date and a way to pay. Optionally send one email the first time a reminder run sees `past_due`. Pairs with the billing-side fixes for renewal dates and Mollie-side cancellations in bitborg-payment.
supernaut lade till detta till projektet Bitborg Web 2026-10-12 13:16:19 +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-web#375
Ingen beskrivning angiven.