fix(billing): flag a refund that fails at the provider #140

Stängd
öppnade 2026-10-12 13:14:57 +00:00 av supernaut · 0 kommentarer
Ägare

A refund that reaches failed at Mollie is stored and nothing else happens.

  • issueRefund (src/billing.ts:832-834) and the sweep (:1864-1866) call only flagIfReowed, which logs only for a refund a chargeback re-owed.
  • It cannot be issued again: claimRefund keys 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:

failed | The refund has failed after processing. For example, the customer has closed his / her bank account.

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.

A refund that reaches `failed` at Mollie is stored and nothing else happens. - `issueRefund` (`src/billing.ts:832-834`) and the sweep (`:1864-1866`) call only `flagIfReowed`, which logs only for a refund a chargeback re-owed. - It cannot be issued again: `claimRefund` keys 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: > `failed` | The refund has failed after processing. For example, the customer has closed his / her bank account. 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.
supernaut lade till detta till projektet Bitborg Payment 2026-10-12 13:16:09 +00:00
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#140
Ingen beskrivning angiven.