fix(billing): let a customer buy again after mollie stops their subscription #156

Stängd
öppnade 2026-10-12 14:16:25 +00:00 av supernaut · 1 kommentar
Ägare

A subscription that Mollie cancels (for example after a mandate revoke) is marked past_due by the sweep. Mollie will never charge it again.

checkout throws already_subscribed while the latest subscription is active or past_due. So the customer cannot buy again until the grace ends and the sweep ends the subscription.

Failing case:

  1. A customer revokes their card mandate, or Mollie suspends the subscription.
  2. The sweep marks it past_due up to 30 days (annual) or 7 days (monthly) before the period end.
  3. The customer tries to renew in the portal. Checkout refuses. Access ends at period end plus grace, and only then can they buy again.

No money or paid time is lost, but the customer has no way to fix it alone. The portal notice points to support.

Possible fix: allow a checkout while the latest subscription is past_due and its Mollie subscription is canceled or suspended. The new subscription starts at the old period end, so the periods do not overlap. Needs a test for the overlap and for a past_due caused by a failed charge, where Mollie still retries and checkout must stay refused.

A subscription that Mollie cancels (for example after a mandate revoke) is marked `past_due` by the sweep. Mollie will never charge it again. `checkout` throws `already_subscribed` while the latest subscription is `active` or `past_due`. So the customer cannot buy again until the grace ends and the sweep ends the subscription. Failing case: 1. A customer revokes their card mandate, or Mollie suspends the subscription. 2. The sweep marks it `past_due` up to 30 days (annual) or 7 days (monthly) before the period end. 3. The customer tries to renew in the portal. Checkout refuses. Access ends at period end plus grace, and only then can they buy again. No money or paid time is lost, but the customer has no way to fix it alone. The portal notice points to support. Possible fix: allow a checkout while the latest subscription is `past_due` and its Mollie subscription is `canceled` or `suspended`. The new subscription starts at the old period end, so the periods do not overlap. Needs a test for the overlap and for a `past_due` caused by a failed charge, where Mollie still retries and checkout must stay refused.
supernaut lade till detta till projektet Bitborg Payment 2026-10-12 14:16:41 +00:00
Upphovsperson
Ägare

Shipped in #176 (squash 652951d, release 0.15.0).

Shipped in #176 (squash 652951d, release 0.15.0).
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#156
Ingen beskrivning angiven.