fix(billing): flag a refund that fails at the provider #140
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#140
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 refund that reaches
failedat Mollie is stored and nothing else happens.issueRefund(src/billing.ts:832-834) and the sweep (:1864-1866) call onlyflagIfReowed, which logs only for a refund a chargeback re-owed.claimRefundkeys on charge and amount (:756-767), and the adapter returns any Mollie refund carrying that key, failed ones included (src/provider/mollie.ts:548-553).Mollie:
https://docs.mollie.com/docs/refunds
Failing case: a customer withdraws, the card account is closed, the refund fails. The customer is still owed the money and no operator knows.
Fix: on every move to
failed, log[reconcile] refund <id> failed at the provider; customer still owed; needs manual review, which the existing alert picks up. Document the manual refund step in the README and the runbook.