gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] 43/93: preparations for QR code alternative path


From: gnunet
Subject: [taler-taler-mdb] 43/93: preparations for QR code alternative path
Date: Mon, 18 Nov 2019 21:13:06 +0100

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

marco-boss pushed a commit to branch master
in repository taler-mdb.

commit 1344b9e81168da174412b408694978884a101954
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Nov 10 22:59:07 2019 +0100

    preparations for QR code alternative path
---
 src/main.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index 86540f9..e49cb6d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -482,12 +482,17 @@ check_payment_cb (void *cls,
   {
     fprintf (stderr,
              "FIXME: yield product here!\n");
+    /* FIXME: hide QR code here! */
   }
   else
   {
-    if (GNUNET_YES == pa->wallet_has_uri)
+    /* Start to check for payment. Note that we do this even before
+       we talked successfully to the wallet via NFC because we MAY show the
+       QR code in the future and in that case the payment may happen
+       anytime even before the NFC communication succeeds. */
+    if ( (NULL == pa->cpo) &&
+         (NULL == pa->delay_task) )
     {
-      GNUNET_assert (NULL == pa->delay_task);
       pa->delay_task = GNUNET_SCHEDULER_add_delayed (MAX_HTTP_RETRY_FREQ,
                                                      &check_payment_again,
                                                      pa);
@@ -495,7 +500,11 @@ check_payment_cb (void *cls,
   }
   if (NULL == pa->taler_pay_uri)
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                "Trying to talk to wallet to give it pay URI `%s'\n",
+                taler_pay_uri);
     GNUNET_assert (NULL == pa->pnd);
+    /* FIXME: show QR code here! */
     pa->taler_pay_uri = GNUNET_strdup (taler_pay_uri);
     pa->task = GNUNET_SCHEDULER_add_now (&connect_nfc,
                                          pa);

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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