merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 7f97541db50b65f7f3a24911fea6bed3300dae7e
parent 9617dc0e1e8de0550d59c197e822c7e7e5709bae
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sat, 24 Jan 2026 16:53:17 +0900

fix #10907

Diffstat:
Msrc/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c | 8++++----
Msrc/backend/taler-merchant-httpd_private-get-orders-ID.c | 2+-
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c @@ -1,6 +1,6 @@ /* This file is part of GNU Taler - (C) 2021-2024 Taler Systems SA + (C) 2021-2026 Taler Systems SA GNU Taler is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as @@ -495,6 +495,9 @@ map_to_status (const struct ExchangeKycRequest *ekr) { return "no-exchange-keys"; } + if (TALER_EC_MERCHANT_PRIVATE_ACCOUNT_NOT_ELIGIBLE_FOR_EXCHANGE == + ekr->last_ec) + return "unsupported-account"; if (ekr->kyc_ok) { if (NULL != ekr->jlimits) @@ -581,9 +584,6 @@ map_to_status (const struct ExchangeKycRequest *ekr) switch (ekr->last_http_status) { case 0: - if (TALER_EC_MERCHANT_PRIVATE_ACCOUNT_NOT_ELIGIBLE_FOR_EXCHANGE == ekr-> - last_ec) - return "unsupported-account"; return "exchange-unreachable"; case MHD_HTTP_OK: /* then we should have kyc_ok */ diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c @@ -904,7 +904,7 @@ phase_check_repurchase (struct GetOrderRequestContext *gorc) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Found already paid order %s\n", already_paid_order_id); - // FIXME (discuss with Florian): it is a bit wild that we use the session ID of the *client's request* \ + // FIXME (discuss with Florian): it is a bit wild that we use the session ID of the *client's request* // (which we usually use to check that the right session got paid!) here to // construct the payment URI when we actually _also_ have a session_id in the // orders table! CG thinks we probably should change this and *ignore* the