commit 35d05353540894b603591b216d27d46dcbee1013
parent 3adf456741c4300d42f4fbccc2ffd9c4e29497f0
Author: Florian Dold <florian@dold.me>
Date: Wed, 19 Feb 2025 12:21:02 +0100
check aml status before returning 'ready'
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -1318,6 +1318,9 @@ process_pay_with_keys (
TALER_EXCHANGE_keys_to_json (keys)))));
return;
}
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Have missing denomination for exchange, updating %s\n",
+ eg->exchange_url);
force_keys (eg);
return;
}
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
@@ -526,10 +526,6 @@ map_to_status (const struct ExchangeKycRequest *ekr)
{
return "no-exchange-keys";
}
- if (ekr->kyc_ok)
- {
- return "ready";
- }
if (! ekr->auth_ok)
{
if (ekr->kyc_auth_conflict)
@@ -538,6 +534,10 @@ map_to_status (const struct ExchangeKycRequest *ekr)
}
if (ekr->in_aml_review)
return "awaiting-aml-review";
+ if (ekr->kyc_ok)
+ {
+ return "ready";
+ }
switch (ekr->last_http_status)
{
case 0: