gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] branch master updated: move image into products


From: gnunet
Subject: [taler-taler-mdb] branch master updated: move image into products
Date: Fri, 11 Sep 2020 14:42:02 +0200

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

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

The following commit(s) were added to refs/heads/master by this push:
     new 1ec500a  move image into products
1ec500a is described below

commit 1ec500afedd068f4da6c45fb84c674ead4e0b287
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Sep 11 14:41:58 2020 +0200

    move image into products
---
 src/main.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main.c b/src/main.c
index b8a7e72..c841a8a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1459,7 +1459,6 @@ static void
 check_payment_again (void *cls)
 {
   struct PaymentActivity *pa = cls;
-  struct Product *p = pa->product;
 
   pa->delay_pay_task = NULL;
   GNUNET_assert (NULL == pa->ogh);
@@ -1563,9 +1562,13 @@ launch_payment (struct Product *product)
   /* create the json object for the order request */
   if (NULL != product->preview)
   {
-    orderReq = json_pack ("{ s:s, s:s, s:o, s:s, s:o }",
+    orderReq = json_pack ("{ s:s, s:{s:s, s:s, s:o}, s:o, s:s, s:o }",
                           "summary", product->description,
-                          "image", product->preview,
+                          "products",
+                          /* */ "description", product->description,
+                          /* */ "image", product->preview,
+                          /* */ "price", TALER_JSON_from_amount (
+                            &product->price),
                           "amount", TALER_JSON_from_amount (&product->price),
                           "fulfillment_message", msg,
                           "auto_refund", GNUNET_JSON_from_time_rel (

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