merchant

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

commit fd58a6d9480ef2706139cad8bffb87fbd050075f
parent 8c7c8597a16f1ad64b2ec9c1e7f45b7e7c8903e0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 28 Sep 2025 22:16:12 +0200

return details on challenge (#10427)

Diffstat:
Msrc/backend/taler-merchant-httpd_post-challenge-ID.c | 16+++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_post-challenge-ID.c b/src/backend/taler-merchant-httpd_post-challenge-ID.c @@ -306,15 +306,21 @@ phase_sent (struct MfaState *mfa) struct MHD_Response *response; response = - MHD_create_response_from_data (0, - NULL, - MHD_NO, - MHD_NO); + TALER_MHD_make_json ( + GNUNET_JSON_PACK ( + GNUNET_JSON_pack_timestamp ( + "solve_expiration", + GNUNET_TIME_absolute_to_timestamp ( + mfa->expiration_date)), + GNUNET_JSON_pack_timestamp ( + "earliest_retransmission", + GNUNET_TIME_absolute_to_timestamp ( + mfa->retransmission_date)))); TALER_MHD_add_global_headers (response, false); respond_to_challenge_with_response ( mfa, - MHD_HTTP_NO_CONTENT, + MHD_HTTP_OK, response); } }