mail: tell the customer when a renewal fails #388

Stängd
öppnade 2026-10-13 10:16:30 +00:00 av supernaut · 0 kommentarer
Ägare

When a renewal fails, billing marks the subscription past_due and reports graceEndsAt (bitborg-payment#53). The customer sees a notice on the account page, but gets no mail.

The renewal-reminder run (src/lib/renewal-reminders.ts) already polls subscriptionStatus per account and dedupes with a claim row. Add a past-due branch:

  • Send one mail per failed renewal, keyed on the period end, with graceEndsAt and a link to the account page (sv and en).
  • Do not send it again for the same period.
  • Tests for the branch and the dedupe.
When a renewal fails, billing marks the subscription `past_due` and reports `graceEndsAt` (bitborg-payment#53). The customer sees a notice on the account page, but gets no mail. The renewal-reminder run (`src/lib/renewal-reminders.ts`) already polls `subscriptionStatus` per account and dedupes with a claim row. Add a past-due branch: - [ ] Send one mail per failed renewal, keyed on the period end, with `graceEndsAt` and a link to the account page (sv and en). - [ ] Do not send it again for the same period. - [ ] Tests for the branch and the dedupe.
supernaut lade till detta till projektet Bitborg Web 2026-10-13 10:17:43 +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#388
Ingen beskrivning angiven.