View Issue Details

IDProjectCategoryView StatusLast Update
0012258Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent]  
PrioritynormalSeveritytext 
Status new 
Summary0012258: A payment with coins of several exchanges that stays partial past an accepting exchange's wire deadline is lost to the payer
DescriptionA wallet may pay one order with coins of several exchanges. The merchant deposits each exchange's coins separately; `/batch-deposit` is atomic per exchange only. If exchange A accepts and exchange B refuses for legal reasons (451, the merchant's KYC at B), or the merchant refuses B's coins for B's transaction limit (`TRANSACTION_LIMIT_VIOLATION`), the payment is partial. `post-orders-ORDER_ID-pay.rst` tells the wallet to suspend the payment, keep its coins and resume once the merchant has resolved the issue, or abort; it must not refresh or reselect coins. On abort, the merchant asks the exchanges for refunds, which an exchange grants until it wires the deposit (RD6 in `spec/refund.md`).

If the issue is not resolved before A's wire deadline, A wires the deposit to the merchant, and a later abort can no longer refund it: the payer loses A's part, and the merchant holds it for an order that is not paid. The pay deadline does not help, as it only ends further payment attempts. The merchant cannot return the money through its API either: its refund endpoints refuse unpaid orders (`REFUND_ORDER_UNPAID`). For orders without refunds the merchant sets the refund deadline to 0, so the window is only the wire delay.

In the TLA+ model `models/tla/TalerMultiPay.tla`, without a rule for partial payments, `NoLossWithoutPayment` is violated (`MCMultiPayNoAutoRefund`); with the merchant aborting an incomplete payment after the pay deadline and before the wire deadline (`spec/multi.md` (M5)), it holds (`MCMultiPay`).

**Proposed change:** the merchant aborts (refunds) incomplete payments itself once they can no longer complete, before the earliest wire deadline of their accepted deposits; or the wallet aborts a suspended payment before that deadline, which needs the deadline in the wallet's hands; or the exchanges delay the wire transfer of deposits for an unpaid order (not possible without telling them).

**Found by:** the formalization of the Taler protocols; the TLA+ model of payments with several exchanges (`TalerMultiPay`), against MX1 in `spec/multi.md`.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

There are no notes attached to this issue.

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecImplementer => bernaalp
2026-11-21 10:27bot-oecReviewer => Alexis_Lafargue
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => vlada.svirsh
2026-11-21 10:27bot-oecVerifier => bernaalp
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 16:08oecImplementerbernaalp =>
2026-11-21 16:08oecReviewerAlexis_Lafargue => Christian Grothoff
2026-11-21 16:08oecRelease signed byAntoine A => Florian Dold
2026-11-21 16:08oecDeployed byvlada.svirsh => Florian Dold
2026-11-21 16:08oecVerifierbernaalp => Florian Dold
2026-11-21 22:43Christian GrothoffSeveritymajor => text
2026-11-29 15:59Christian GrothoffView Statusprivate => public