fix(billing): let a customer buy again after mollie stops their subscription #156
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#156
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?
A subscription that Mollie cancels (for example after a mandate revoke) is marked
past_dueby the sweep. Mollie will never charge it again.checkoutthrowsalready_subscribedwhile the latest subscription isactiveorpast_due. So the customer cannot buy again until the grace ends and the sweep ends the subscription.Failing case:
past_dueup to 30 days (annual) or 7 days (monthly) before the period end.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_dueand its Mollie subscription iscanceledorsuspended. The new subscription starts at the old period end, so the periods do not overlap. Needs a test for the overlap and for apast_duecaused by a failed charge, where Mollie still retries and checkout must stay refused.Shipped in #176 (squash
652951d, release 0.15.0).