summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-09-11 14:53:41 +0200
committerChristian Grothoff <christian@grothoff.org>2020-09-11 14:53:41 +0200
commita551891015fb28647fc0d9b33e105a12b785b0f3 (patch)
treef0b4093cf77da612820e61fa9847ab57a2539072 /src
parent1e193e674ab607fb5556b65178ac5952a2eb5d86 (diff)
downloadtaler-mdb-a551891015fb28647fc0d9b33e105a12b785b0f3.tar.gz
taler-mdb-a551891015fb28647fc0d9b33e105a12b785b0f3.tar.bz2
taler-mdb-a551891015fb28647fc0d9b33e105a12b785b0f3.zip
move image into products _array_
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 374cde6..e03ac22 100644
--- 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,
@@ -2224,6 +2224,8 @@ handle_command (const char *hex,
return;
}
payment_activity = launch_payment (&products[i]);
+ if (NULL == payment_activity)
+ vend_failure ();
return;
}
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,