taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

commit a551891015fb28647fc0d9b33e105a12b785b0f3
parent 1e193e674ab607fb5556b65178ac5952a2eb5d86
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 11 Sep 2020 14:53:41 +0200

move image into products _array_

Diffstat:
Msrc/main.c | 4+++-
1 file changed, 3 insertions(+), 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, @@ -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,