commit 1e193e674ab607fb5556b65178ac5952a2eb5d86
parent 1ec500afedd068f4da6c45fb84c674ead4e0b287
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 11 Sep 2020 14:46:08 +0200
move image into products _array_
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -1562,7 +1562,7 @@ 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 }",
+ 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,