fix(billing): report a failed checkout for a returning customer #143
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#143
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?
latestSubscription(src/billing.ts:271-292) skips onlyincompleterows.subscriptionStatus(:426-449) reports a failed first payment only when no other subscription exists.Failing case:
canceled(ended, withdrawn or refused).subscriptionStatusreturns the old subscription. The return page drops its old charge and polls to the neutral "unknown" text. It never shows the failure or the retry button.Mollie calls
failedandexpireddefinitive (https://docs.mollie.com/docs/handling-payment-status). We receive them but hide them.Fix: take the newest subscription of any status first. Report it when it is
incompletewith a failed, canceled or expired latest charge. Otherwise fall back tolatestSubscription. Add a test with an old canceled subscription and a new failed one.