aboutsummaryrefslogtreecommitdiff
path: root/src/backend
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
parent6a7e7e583e6095ec956cabf49e89b63508729114 (diff)
-fix FTBFS after exchange API changes
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-pay.c4
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c23
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders-ID.c2
3 files changed, 16 insertions, 13 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
index 989b7564..d0e4752f 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -746,7 +746,7 @@ deposit_get_callback (
kc->mi->settings.id,
&kc->wm->h_wire,
kc->exchange_url,
- dr->details.success.legitimization_uuid,
+ 0LL,
NULL, /* no signature */
NULL, /* no signature */
now,
@@ -759,7 +759,7 @@ deposit_get_callback (
kc->mi->settings.id,
&kc->wm->h_wire,
kc->exchange_url,
- dr->details.accepted.legitimization_uuid,
+ dr->details.accepted.requirement_row,
NULL, /* no signature */
NULL, /* no signature */
now,
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);
}
diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
index a5557c73..f4e67da9 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
@@ -533,7 +533,7 @@ deposit_get_cb (void *cls,
gorc->hc->instance->settings.id,
&tq->h_wire,
tq->exchange_url,
- dr->details.accepted.legitimization_uuid,
+ dr->details.accepted.requirement_row,
NULL,
NULL,
now,