merchant

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

commit f3ae00f1308afed451c75941abd31b1cd0c7b738
parent 52c2c680d65e0b9983d9c4370b05b317d587223e
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Thu,  8 May 2025 15:10:24 +0200

set kyc-required on 0-limits only if kyc-wire-*-cases are not also met; fixes #9888

Diffstat:
Msrc/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 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 @@ -564,7 +564,15 @@ map_to_status (const struct ExchangeKycRequest *ekr) if ( (operation_type == TALER_KYCLOGIC_KYC_TRIGGER_DEPOSIT) || (operation_type == TALER_KYCLOGIC_KYC_TRIGGER_AGGREGATE) || (operation_type == TALER_KYCLOGIC_KYC_TRIGGER_TRANSACTION) ) + { + if (! ekr->auth_ok) + { + if (ekr->kyc_auth_conflict) + return "kyc-wire-impossible"; + return "kyc-wire-required"; + } return "kyc-required"; + } } } if (NULL == ekr->jlimits) @@ -580,7 +588,15 @@ map_to_status (const struct ExchangeKycRequest *ekr) if ( (operation_type == TALER_KYCLOGIC_KYC_TRIGGER_DEPOSIT) || (operation_type == TALER_KYCLOGIC_KYC_TRIGGER_AGGREGATE) || (operation_type == TALER_KYCLOGIC_KYC_TRIGGER_TRANSACTION) ) + { + if (! ekr->auth_ok) + { + if (ekr->kyc_auth_conflict) + return "kyc-wire-impossible"; + return "kyc-wire-required"; + } return "kyc-required"; + } } } return "ready";