refunds: log and list failed refunds until reviewed #115

Stängd
öppnade 2026-10-08 21:12:28 +00:00 av supernaut · 0 kommentarer
Ägare

What

A refund that ends failed is reviewed by nobody once the one-time log line has scrolled by. Extends #87.

Done already

The once-only log shipped in #154: [reconcile] ... needs manual review when a refund turns failed at the provider.

Why

The customer is owed the money. The sweep skips a failed refund, so no later line reminds the operator. Nothing records that someone looked.

Failing case

A withdrawal refund goes to a closed card. Mollie fails it. The log line appears once. A week later nothing says the refund is still unsettled.

Fix

  • Add reviewed_at to refund (migration).
  • In reconcile, log a repeating [reconcile] <n> failed refund(s) unreviewed, oldest <id> since <time> line, as for chargebacks.
  • README: the UPDATE refund SET reviewed_at = now() step.

Done when

  • Test: the summary line repeats until reviewed_at is set.
  • Test: a reviewed refund is left out of the count.
  • README updated.
## What A refund that ends `failed` is reviewed by nobody once the one-time log line has scrolled by. Extends #87. ## Done already The once-only log shipped in #154: `[reconcile] ... needs manual review` when a refund turns `failed` at the provider. ## Why The customer is owed the money. The sweep skips a `failed` refund, so no later line reminds the operator. Nothing records that someone looked. ## Failing case A withdrawal refund goes to a closed card. Mollie fails it. The log line appears once. A week later nothing says the refund is still unsettled. ## Fix - Add `reviewed_at` to `refund` (migration). - In `reconcile`, log a repeating `[reconcile] <n> failed refund(s) unreviewed, oldest <id> since <time>` line, as for chargebacks. - README: the `UPDATE refund SET reviewed_at = now()` step. ## Done when - [ ] Test: the summary line repeats until `reviewed_at` is set. - [ ] Test: a reviewed refund is left out of the count. - [ ] README updated.
supernaut lade till detta till projektet Bitborg Payment 2026-10-08 21:14:07 +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#115
Ingen beskrivning angiven.