merchant

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

commit 9129297e56763ae2941ee8e52cd3f96a5b880b02
parent fd6e459cc7fcad3703c993e812f25a09e1ca9d36
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  9 Sep 2024 20:32:10 +0200

-fix all-zeros access_token issue

Diffstat:
Msrc/backend/taler-merchant-kyccheck.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-kyccheck.c b/src/backend/taler-merchant-kyccheck.c @@ -440,7 +440,9 @@ store_kyc_status ( jlimits); } i->jlimits = jlimits; + GNUNET_break (! GNUNET_is_zero (&account_kyc_status->access_token)); i->access_token = account_kyc_status->access_token; + i->auth_ok = true; i->aml_review = account_kyc_status->aml_review; i->kyc_ok = (MHD_HTTP_OK == i->last_http_status); } @@ -564,7 +566,9 @@ exchange_check_cb ( i->last_kyc_check, i->last_http_status, i->last_ec, - &i->access_token, + (i->auth_ok) + ? &i->access_token + : NULL, i->jlimits, i->aml_review, i->kyc_ok);