provider: page through every Mollie listing #89

Stängd
öppnade 2026-10-05 12:32:47 +00:00 av supernaut · 0 kommentarer
Ägare

Problem

  • The refund duplicate lookup in refund() reads only the first page (src/provider/mollie.ts:482), and so does the refund listing in parseCallback (:592). The local refund.idempotency_key UNIQUE is the real guard, so the risk is small.
  • listPayments and listChargebacks use the SDK default page size (mollie.ts:524-545). Both also stop at the first item older than since, which assumes newest-first order. Mollie documents that for payments; the chargeback list order was not confirmed.

Fix

  • Use limit: 250 or iterate() everywhere a listing is used.
  • Confirm the chargeback list order once against the API, and pin it in a comment.

Found in the Mollie docs audit of 2026-10-05.

## Problem - The refund duplicate lookup in `refund()` reads only the first page (`src/provider/mollie.ts:482`), and so does the refund listing in `parseCallback` (`:592`). The local `refund.idempotency_key UNIQUE` is the real guard, so the risk is small. - `listPayments` and `listChargebacks` use the SDK default page size (`mollie.ts:524-545`). Both also stop at the first item older than `since`, which assumes newest-first order. Mollie documents that for payments; the chargeback list order was not confirmed. ## Fix - Use `limit: 250` or `iterate()` everywhere a listing is used. - Confirm the chargeback list order once against the API, and pin it in a comment. Found in the Mollie docs audit of 2026-10-05.
supernaut lade till detta till projektet Bitborg Payment 2026-10-05 12:34:47 +00:00
supernaut refererade till detta ärende från en incheckning 2026-10-18 11:16:06 +00:00
supernaut refererade till detta ärende från en incheckning 2026-10-18 12:35:56 +00:00
supernaut refererade till detta ärende från en incheckning 2026-10-18 12:39:03 +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#89
Ingen beskrivning angiven.