gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: serialize payment request for n


From: gnunet
Subject: [taler-anastasis] branch master updated: serialize payment request for next time
Date: Wed, 17 Mar 2021 22:03:22 +0100

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

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new db7bea8  serialize payment request for next time
db7bea8 is described below

commit db7bea8a8ad00b5af4a448ba02b0b5a17b210d47
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Wed Mar 17 22:03:18 2021 +0100

    serialize payment request for next time
---
 src/reducer/anastasis_api_backup_redux.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/reducer/anastasis_api_backup_redux.c 
b/src/reducer/anastasis_api_backup_redux.c
index 5a1df71..8b2eefa 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -1897,9 +1897,26 @@ truth_upload_cb (void *cls,
   tue->ec = ud->ec;
   if (ANASTASIS_US_PAYMENT_REQUIRED == ud->us)
   {
+    json_t *auth_methods;
+    json_t *amj;
+
     tue->payment_request = GNUNET_strdup (
       ud->details.payment.payment_request);
     tue->ps = ud->details.payment.ps;
+
+    auth_methods = json_object_get (tue->uc->state,
+                                    "authentication_methods");
+    amj = json_array_get (auth_methods,
+                          tue->am_idx);
+    GNUNET_assert (NULL != amj);
+    GNUNET_assert (0 ==
+                   json_object_set_new (amj,
+                                        "payment_secret",
+                                        GNUNET_JSON_from_data_auto 
(&tue->ps)));
+    GNUNET_assert (0 ==
+                   json_object_set_new (amj,
+                                        "payment_request",
+                                        json_string (tue->payment_request)));
   }
   /* persist upload status for later */
   policies = json_object_get (tue->uc->state,

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