From f32385240641817c6b7011ba96cc2e9af9be6607 Mon Sep 17 00:00:00 2001 From: shum Date: Thu, 22 Oct 2026 14:46:57 +0000 Subject: [PATCH] store: refund with the service stopped --- apps/simplex-store-service/README.md | 22 ++++++++----------- .../src/StoreService/Service.hs | 2 +- .../StoreService/GroupIntegrationTests.hs | 2 +- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/apps/simplex-store-service/README.md b/apps/simplex-store-service/README.md index b66c6c8c56..2d1e64f392 100644 --- a/apps/simplex-store-service/README.md +++ b/apps/simplex-store-service/README.md @@ -855,7 +855,7 @@ after the invoice closed. The buyer spends a balance on another name from Your n back: the page tells them to write to chat@simplex.chat with the order's reference, which is its invoice id, or its registration id for an order without an invoice. Nothing is refunded automatically, and the service never learns where to send money. Support records each refund in -`--run-cli` mode, as `//revoke` of a name code: +`--run-cli` mode with the service stopped, like the other `//` commands: ``` //refund @@ -874,8 +874,8 @@ automatically, and the service never learns where to send money. Support records `xmr`), the part paid from the balance of the next order listed, and, marked `late`, money credited after its invoice closed. 2. Run the command the answer ends with. The cents must equal the whole balance: a refund zeroes it, - and part of a balance is never refunded. If the balance changed since step 1, by a spend or a - late credit, nothing is recorded and the answer gives the balance now; start again at step 1. + and part of a balance is never refunded. Other cents record nothing, and the answer gives the + balance. 3. The answer, `Recorded a refund of $100.00 for order . Refund it now, by: …`, repeats the chain. Pay the money back now, by the methods it lists: a card payment as a refund in the Stripe Dashboard, crypto to an address the buyer gives, at that day's rate, since the balance is in US @@ -888,11 +888,12 @@ its invoice is waiting for the difference. The command names the order and its i instead: - `its invoice open until