gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: -start to use latest exchange /k


From: gnunet
Subject: [taler-merchant] branch master updated: -start to use latest exchange /kyc-check API (WiP)
Date: Sun, 10 Oct 2021 15:37:46 +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 87cf7532 -start to use latest exchange /kyc-check API (WiP)
87cf7532 is described below

commit 87cf7532f667775fcd70a66a45cd2c12acfe2ff6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Oct 10 15:37:44 2021 +0200

    -start to use latest exchange /kyc-check API (WiP)
---
 ...r-merchant-httpd_private-get-instances-ID-kyc.c | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 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 bc9aa76f..9292b3ff 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
@@ -70,7 +70,7 @@ struct ExchangeKycRequest
   /**
    * Handle for the actual HTTP request to the exchange.
    */
-  // struct TALER_EXCHANGE_KycHandle *kyc;
+  struct TALER_EXCHANGE_KycCheckHandle *kyc;
 
   /**
    * KYC number used by the exchange.
@@ -250,7 +250,11 @@ kyc_context_cleanup (void *cls)
     GNUNET_CONTAINER_DLL_remove (kc->exchange_pending_head,
                                  kc->exchange_pending_tail,
                                  ekr);
-    // FIXME: TALER_EXCHANGE_kyc_check_cancel (ekr->kyc);
+    if (NULL != ekr->kyc)
+    {
+      TALER_EXCHANGE_kyc_check_cancel (ekr->kyc);
+      ekr->kyc = NULL;
+    }
     GNUNET_free (ekr->exchange_url);
     GNUNET_free (ekr->payto_uri);
     GNUNET_free (ekr);
@@ -350,9 +354,15 @@ handle_kyc_timeout (void *cls)
 
 
 #if FIXME
+/**
+ * Function called with the result of a KYC check.
+ *
+ * @param cls a `struct ExchangeKycRequest *`
+ * @param ks the account's KYC status details
+ */
 static void
 exchange_check_cb (void *cls,
-                   ...)
+                   const struct TALER_EXCHANGE_KycStatus *ks)
 {
   struct ExchangeKycRequest *ekr = cls;
   struct KycContext *kc = ekr->kc;
@@ -441,7 +451,11 @@ kyc_status_cb (void *cls,
   ekr->kyc_ok = kyc_ok;
   ekr->kc = kc;
 #if FIXME
-  ekr->kyc = TALER_EXCHANGE_kyc_check (exchange_url,
+  exchange <= from (exchange_url);
+  ekr->kyc = TALER_EXCHANGE_kyc_check (exchange,
+                                       exchange_kyc_serial,
+                                       h_wire,
+                                       pc->timeout,
                                        &exchange_check_cb,
                                        ekr);
 #endif

-- 
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]