merchant

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

commit ee940bafae96933d6ef3b6705c38fca318b3b633
parent 5b1446db72399dc15171e7668e87421b5a76d4c0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  1 Apr 2026 17:07:05 +0200

fix for #11325

Diffstat:
Mcontrib/kyc_text.en.must | 5+++++
Msrc/backend/taler-merchant-httpd_get-private-kyc.c | 16++++++++++++++--
2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/contrib/kyc_text.en.must b/contrib/kyc_text.en.must @@ -8,7 +8,12 @@ Payment service: {{exchange_url}} Currency : {{exchange_currency}} ──────────────────────────────────────── {{#limits}} + {{#disallowed}} +* {{operation_type}} is not allowed. + {{/disallowed}} + {{^disallowed}} * {{operation_type}} within {{interval}} is allowed up to {{threshold}}. + {{/disallowed}} {{#soft_limit}} This limit may be relaxed after additional legitimization steps. {{/soft_limit}} diff --git a/src/backend/taler-merchant-httpd_get-private-kyc.c b/src/backend/taler-merchant-httpd_get-private-kyc.c @@ -599,6 +599,10 @@ pack_limit (const struct KycContext *kc, jl = GNUNET_JSON_PACK ( TALER_JSON_pack_kycte ("operation_type", limit->operation_type), + GNUNET_JSON_pack_bool ( + "disallowed", + GNUNET_TIME_relative_is_zero (limit->timeframe) || + TALER_amount_is_zero (&limit->threshold)), (POF_TEXT == kc->format) ? GNUNET_JSON_pack_string ("interval", GNUNET_TIME_relative2s (limit->timeframe, @@ -669,8 +673,16 @@ get_exchange_limits ( jl = GNUNET_JSON_PACK ( TALER_JSON_pack_kycte ("operation_type", zlimit->operation_type), - GNUNET_JSON_pack_time_rel ("timeframe", - GNUNET_TIME_UNIT_ZERO), + GNUNET_JSON_pack_bool ( + "disallowed", + true), + (POF_TEXT == kc->format) + ? GNUNET_JSON_pack_string ( + "interval", + GNUNET_TIME_relative2s (GNUNET_TIME_UNIT_ZERO, + true)) + : GNUNET_JSON_pack_time_rel ("timeframe", + GNUNET_TIME_UNIT_ZERO), TALER_JSON_pack_amount ("threshold", &zero), GNUNET_JSON_pack_bool ("soft_limit",