commit 9c3cbc7bc0d5bb0217b50b4dc798dd6974f290bd
parent 23c15bc81deb564b0d2011a0590a3440ebf02461
Author: Joel-Haeberli <haebu@rubigen.ch>
Date: Mon, 3 Jun 2024 11:37:18 +0200
fix: refund
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/c2ec/api-wire-gateway.go b/c2ec/api-wire-gateway.go
@@ -29,11 +29,11 @@ type WireConfig struct {
// https://docs.taler.net/core/api-bank-wire.html#tsref-type-TransferRequest
type TransferRequest struct {
- RequestUid HashCode `json:"request_uid"`
- Amount string `json:"amount"`
- ExchangeBaseUrl string `json:"exchange_base_url"`
- Wtid ShortHashCode `json:"wtid"`
- CreditAccount string `json:"credit_account"`
+ RequestUid string `json:"request_uid"`
+ Amount string `json:"amount"`
+ ExchangeBaseUrl string `json:"exchange_base_url"`
+ Wtid string `json:"wtid"`
+ CreditAccount string `json:"credit_account"`
}
// https://docs.taler.net/core/api-bank-wire.html#tsref-type-TransferResponse
@@ -238,7 +238,7 @@ func transfer(res http.ResponseWriter, req *http.Request) {
}
if transfer.Amount != FormatAmount(ta, CONFIG.Server.CurrencyFractionDigits) ||
transfer.ExchangeBaseUrl != t.ExchangeBaseUrl ||
- transfer.Wtid != ShortHashCode(t.Wtid) ||
+ transfer.Wtid != t.Wtid ||
transfer.CreditAccount != t.CreditAccount {
LogWarn("wire-gateway-api", "idempotency violation")