gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: -fix FTBFS after exchange API ch


From: gnunet
Subject: [taler-merchant] branch master updated: -fix FTBFS after exchange API changes
Date: Sun, 21 Aug 2022 11:51:14 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new d1a98628 -fix FTBFS after exchange API changes
d1a98628 is described below

commit d1a98628b2014a3faffd39467a51803b5c4deb36
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Aug 21 11:51:12 2022 +0200

    -fix FTBFS after exchange API changes
---
 .../taler-merchant-httpd_post-orders-ID-pay.c      |  4 ++--
 ...r-merchant-httpd_private-get-instances-ID-kyc.c | 23 ++++++++++++----------
 .../taler-merchant-httpd_private-get-orders-ID.c   |  2 +-
 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,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]