commit cb73b57e0049d56fd3da69641dc2aad798a7fc3b
parent f8ad8bb28b419b812d8ea66ef874a4131e446dc4
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 17 Jan 2026 12:41:24 +0100
include tip in 'amount' as this is the total to be paid
Diffstat:
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-using-templates.c b/src/backend/taler-merchant-httpd_post-using-templates.c
@@ -1646,9 +1646,8 @@ create_using_templates_fixed (struct UseContext *uc)
{
json_t *tip_products = NULL;
- if (NULL != uc->ihc.request_body)
- return GNUNET_OK;
-
+ GNUNET_assert (1 == uc->compute_price.totals_len);
+ GNUNET_assert (NULL == uc->ihc.request_body);
if (! uc->parse_request.no_tip)
{
tip_products = json_array ();
@@ -1677,9 +1676,7 @@ create_using_templates_fixed (struct UseContext *uc)
GNUNET_JSON_PACK (
TALER_JSON_pack_amount (
"amount",
- uc->parse_request.no_amount
- ? &uc->parse_template.tamount
- : &uc->parse_request.amount),
+ &uc->compute_price.totals[0]),
GNUNET_JSON_pack_string (
"summary",
NULL == uc->parse_request.summary