merchant

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

commit 5e47723160feb1ea2c765bb392ed8ec1afd03a81
parent 2fafedafc461e6f8d7a88632e693b78229b553f8
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Fri, 24 Feb 2017 20:03:55 +0100

Minimizing data returned by /history, for debugging
purposes.

Diffstat:
Msrc/backend/taler-merchant-httpd_history.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_history.c b/src/backend/taler-merchant-httpd_history.c @@ -46,11 +46,11 @@ pd_cb (void *cls, json_t *response = cls; json_t *entry; + /*FIXME: more details to be returned*/ GNUNET_break (NULL != - (entry = json_pack ("{s:s, s:o}", - "order_id", order_id, - "proposal_data", proposal_data))); + (entry = json_pack ("{s:s}", + "order_id", order_id))); GNUNET_break (0 == json_array_append (response, entry)); } @@ -123,6 +123,7 @@ MH_handler_history (struct TMH_RequestHandler *rh, return TMH_RESPONSE_reply_internal_error (connection, TALER_EC_HISTORY_DB_FETCH_ERROR, "db error to get history"); + return TMH_RESPONSE_reply_json (connection, response, MHD_HTTP_OK);