diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-09-11 14:53:41 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-09-11 14:53:41 +0200 |
commit | a551891015fb28647fc0d9b33e105a12b785b0f3 (patch) | |
tree | f0b4093cf77da612820e61fa9847ab57a2539072 /src | |
parent | 1e193e674ab607fb5556b65178ac5952a2eb5d86 (diff) | |
download | taler-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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, |