View Issue Details

IDProjectCategoryView StatusLast Update
0012291Talerwallet-corepublic2026-11-25 22:55
Reporterbot-oec [agent]  
ImplementerFlorian Dold  
PrioritynormalSeverityminor 
Status implementing 
Target Version1.10 
Summary0012291: Partial payments are never aborted; after the wire deadline their deposits are wired to the merchant
DescriptionA payment with coins of several exchanges that is not complete when the pay deadline passes must be aborted by the merchant, which requests the refund of every accepted deposit before the earliest wire deadline of these deposits. The documentation does not state this rule; without it, a payment left partial past the wire deadline of an accepting exchange, for example because another exchange refused it for legal reasons, loses that exchange's contributions: the merchant holds them for an order that is not paid.

The merchant backend has no such step. Its refund endpoints refuse unpaid orders (`taler-merchant-httpd_post-private-orders-ORDER_ID-refund.c`, `…-refund-external.c`: `REFUND_ORDER_UNPAID`), so a partial payment can only be returned by the wallet's `POST /orders/{order_id}/abort`. The wallet (`pay-merchant.ts`, `suspendPayForLegalRefusal`) puts a payment refused with 451 or a transaction-limit violation into `SuspendedPaying` and stops its task; nothing aborts it later. If the user does not abort before an accepting exchange's wire deadline, the deposits there are wired to the merchant and cannot be refunded.

**Steps to reproduce:** a payment with coins of two exchanges, one of which accepts its deposits while the other refuses them with 451: the wallet suspends the payment, the merchant does not abort it, and after the accepting exchange's wire deadline its deposits are wired to the merchant. Found by reading the code; not tested.

**Proposed fix:** in the merchant, abort incomplete payments after the pay deadline, before the earliest wire deadline of their deposits (and allow refunds of their deposits); in the wallet, abort a suspended payment before that deadline.

**Found by:** the formalization of the Taler protocols; the rule violated is MX1 in `spec/multi.md`: a payer whose payment is not completed gets back every coin contribution an exchange accepted, which needs (M5) in `spec/multi.md`: the merchant aborts a payment not complete at the pay deadline, before the earliest wire deadline of its deposits.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2026-11-25 22:55

manager   ~0030898

That's a wallet core issue that it doesn't handle 451 correctly by /aborting. The merchant backend refunding partially paid orders is not good enough: at that point the money would be truly in nirvana, as the merchant won't get it and the wallet won't know that it could get it back. So the merchant NOT doing anything without the wallet asking is probably better. Regardless, the real fix is for wallet-core to properly /abort on 451.

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:28bot-oecNew Issue
2026-11-21 10:28bot-oecImplementer => Bohdan
2026-11-21 10:28bot-oecReviewer => sebasjm
2026-11-21 10:28bot-oecRelease signed by => Florian Dold
2026-11-21 10:28bot-oecDeployed by => Bohdan
2026-11-21 10:28bot-oecVerifier => sebasjm
2026-11-21 10:28bot-oecCommunicator => CM_7
2026-11-21 16:21oecImplementerBohdan =>
2026-11-25 22:55Christian GrothoffImplementer => Florian Dold
2026-11-25 22:55Christian GrothoffStatusnew => implementing
2026-11-25 22:55Christian GrothoffCategorymerchant backend => wallet-core
2026-11-25 22:55Christian GrothoffTarget Version => 1.10
2026-11-25 22:55Christian GrothoffNote Added: 0030898
2026-11-25 22:55Christian GrothoffReviewersebasjm => oec
2026-11-25 22:55Christian GrothoffDeployed byBohdan => Florian Dold
2026-11-25 22:55Christian GrothoffSeveritymajor => minor
2026-11-25 22:55Christian GrothoffView Statusprivate => public