exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 92f069d89d5421da00412a62920471bf26ef777a
parent e7dabf1a7a6cf8f98beb51139332d5e58c8ad4b0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  7 Jul 2024 12:02:43 +0200

finish kyc_start API

Diffstat:
Msrc/lib/exchange_api_kyc_start.c | 20+++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/src/lib/exchange_api_kyc_start.c b/src/lib/exchange_api_kyc_start.c @@ -93,7 +93,25 @@ handle_kyc_start_finished (void *cls, adr.hr.hint = "server offline?"; break; case MHD_HTTP_OK: - // FIXME! + { + struct GNUNET_JSON_Specification spec[] = { + GNUNET_JSON_spec_string ( + "redirect_url", + &adr.details.ok.redirect_url), + GNUNET_JSON_spec_end () + }; + + if (GNUNET_OK != + GNUNET_JSON_parse (json, + spec, + NULL, NULL)) + { + GNUNET_break_op (0); + adr.hr.http_status = 0; + adr.hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; + break; + } + } break; case MHD_HTTP_NOT_FOUND: break;