commit 4bb0c9520f5c3b29f2edbeaced861bf94eda7655
parent c0a82a70c275a15b21d0e8c711f2d0e25e5621bf
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 10 Jan 2026 20:25:43 +0900
fix field missing in order creation response
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -1357,6 +1357,7 @@ phase_execute_order (struct OrderContext *oc)
/* DB transaction succeeded, check for idempotent */
if (oc->execute_order.idempotent)
{
+ // FIXME: duplicated code...
MHD_RESULT ret;
ret = TALER_MHD_REPLY_JSON_PACK (
@@ -1506,6 +1507,7 @@ phase_execute_order (struct OrderContext *oc)
"Order creation succeeded\n");
{
+ // FIXME: duplicated code...
MHD_RESULT ret;
ret = TALER_MHD_REPLY_JSON_PACK (
@@ -1513,6 +1515,8 @@ phase_execute_order (struct OrderContext *oc)
MHD_HTTP_OK,
GNUNET_JSON_pack_string ("order_id",
oc->parse_order.order_id),
+ GNUNET_JSON_pack_timestamp ("pay_deadline",
+ oc->parse_order.pay_deadline),
GNUNET_JSON_pack_allow_null (
GNUNET_JSON_pack_data_varsize (
"token",