taler-mdb

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

commit 1ec500afedd068f4da6c45fb84c674ead4e0b287
parent 5215da656a45d056fa7f3e9e3b0310c55d1afddd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 11 Sep 2020 14:41:58 +0200

move image into products

Diffstat:
Msrc/main.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -1459,7 +1459,6 @@ static void check_payment_again (void *cls) { struct PaymentActivity *pa = cls; - struct Product *p = pa->product; pa->delay_pay_task = NULL; GNUNET_assert (NULL == pa->ogh); @@ -1563,9 +1562,13 @@ 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: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, - "image", product->preview, + "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 (