[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] branch master updated: quantity required?
From: |
gnunet |
Subject: |
[taler-taler-mdb] branch master updated: quantity required? |
Date: |
Fri, 11 Sep 2020 15:04: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 0c2b40f quantity required?
0c2b40f is described below
commit 0c2b40f2d7817a448bb4c4a6c12ddeb1cdf32b1b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Sep 11 15:03:59 2020 +0200
quantity required?
---
src/main.c | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/src/main.c b/src/main.c
index e03ac22..9ab748d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1562,18 +1562,20 @@ 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, s:s, s:o } ], s:o, s:s, s:o }",
- "summary", product->description,
- "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 (
- MAX_REFUND_DELAY)
- );
+ orderReq = json_pack (
+ "{ s:s, s:[ { s:s, s:s, s:o, s:I } ], s:o, s:s, s:o }",
+ "summary", product->description,
+ "products",
+ /* */ "description", product->description,
+ /* */ "image", product->preview,
+ /* */ "price", TALER_JSON_from_amount (
+ &product->price),
+ /* */ "quantity", (json_int_t) 1,
+ "amount", TALER_JSON_from_amount (&product->price),
+ "fulfillment_message", msg,
+ "auto_refund", GNUNET_JSON_from_time_rel (
+ MAX_REFUND_DELAY)
+ );
}
else
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-mdb] branch master updated: quantity required?,
gnunet <=