merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 4b9062c3a7d38c41ba970e630e759a899b171e71
parent 73fdf47728e26d8625a85441b8523bca0176868f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 30 Dec 2022 15:00:03 +0100

-fix template issue on insert

Diffstat:
Msrc/testing/testing_api_cmd_post_templates.c | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/testing/testing_api_cmd_post_templates.c b/src/testing/testing_api_cmd_post_templates.c @@ -144,7 +144,12 @@ post_templates_run (void *cls, tis->template_contract, &post_templates_cb, tis); - GNUNET_assert (NULL != tis->iph); + if (NULL == tis->iph) + { + GNUNET_break (0); + TALER_TESTING_interpreter_fail (tis->is); + return; + } } @@ -255,7 +260,10 @@ TALER_TESTING_cmd_merchant_post_templates (const char *label, template_id, template_description, NULL, - json_pack ("{s:s}", "merchant", "Pay"), + GNUNET_JSON_PACK ( + GNUNET_JSON_pack_uint64 ("minimum_age", 0), + GNUNET_JSON_pack_time_rel ("pay_duration", + GNUNET_TIME_UNIT_MINUTES)), http_status); }