aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-21 11:51:12 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-21 11:51:12 +0200
commitd1a98628b2014a3faffd39467a51803b5c4deb36 (patch)
tree30a77fa7a8a74076603cb4ad6138c49c059b283b /src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
parent6a7e7e583e6095ec956cabf49e89b63508729114 (diff)
-fix FTBFS after exchange API changes
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c23
1 files changed, 13 insertions, 10 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
index d3f32da2..0709679b 100644
--- a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
+++ b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
@@ -457,9 +457,9 @@ exchange_check_cb (void *cls,
&ekr->h_wire,
ekr->exchange_url,
ekr->exchange_kyc_serial,
- &ks->details.kyc_ok.exchange_sig,
- &ks->details.kyc_ok.exchange_pub,
- ks->details.kyc_ok.timestamp,
+ &ks->details.success.exchange_sig,
+ &ks->details.success.exchange_pub,
+ ks->details.success.timestamp,
true);
if (qs < 0)
{
@@ -475,7 +475,7 @@ exchange_check_cb (void *cls,
kc->pending_kycs,
GNUNET_JSON_PACK (
GNUNET_JSON_pack_string ("kyc_url",
- ks->details.kyc_url),
+ ks->details.accepted.kyc_url),
GNUNET_JSON_pack_string ("exchange_url",
ekr->exchange_url),
GNUNET_JSON_pack_string ("payto_uri",
@@ -584,12 +584,15 @@ kyc_with_exchange (void *cls,
ekr->fo = NULL;
TALER_payto_hash (ekr->payto_uri,
&h_payto);
- ekr->kyc = TALER_EXCHANGE_kyc_check (eh,
- ekr->exchange_kyc_serial,
- &h_payto,
- kc->timeout,
- &exchange_check_cb,
- ekr);
+ ekr->kyc = TALER_EXCHANGE_kyc_check (
+ eh,
+ ekr->exchange_kyc_serial,
+ &h_payto,
+ /* FIXME: get from settings! */
+ TALER_KYCLOGIC_KYC_UT_BUSINESS,
+ kc->timeout,
+ &exchange_check_cb,
+ ekr);
}