refunds: surface queued refunds, keep canceled apart from failed, settle from the webhook #87
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#87
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?
Problem
Three gaps in refund handling:
queued(Mollie is waiting for enough balance) maps topending(src/provider/mollie.ts:110-122). The sweep polls it silently forever, so a customer's refund can sit unpaid with nobody noticing.canceledandfailedboth map tofailedand trigger a re-owe (mollie.ts:112-114,billing.ts:454,:1403). A cancel is an operator action in the dashboard, a failure is not. The merged state loses why.billing.ts:1043-1048). Afailedrefund waits for the next sweep.Mollie docs
queued= awaiting sufficient balance; webhooks fire forprocessing,refundedandfailed(https://docs.mollie.com/docs/refunds, https://docs.mollie.com/reference/webhooks).Fix
queuedor pending longer than 24 hours.Done when
Found in the Mollie docs audit of 2026-10-05.