merchant

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

commit 843bf7140aa89b3d171dbc1f6525e5d6720eda89
parent 66c45f6c7dcfc0abb0bd144cacd87f6e9104971c
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 24 Jun 2024 11:46:02 +0200

log on 400 errors

Diffstat:
Msrc/backend/taler-merchant-httpd_private-get-orders.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_private-get-orders.c b/src/backend/taler-merchant-httpd_private-get-orders.c @@ -679,26 +679,35 @@ TMH_private_get_orders (const struct TMH_RequestHandler *rh, "paid", TALER_EXCHANGE_YNA_ALL, &po->of.paid)) ) + { + GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, "paid"); + } if (! (TALER_arg_to_yna (connection, "refunded", TALER_EXCHANGE_YNA_ALL, &po->of.refunded)) ) + { + GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, "refunded"); + } if (! (TALER_arg_to_yna (connection, "wired", TALER_EXCHANGE_YNA_ALL, &po->of.wired)) ) + { + GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, "wired"); + } po->of.delta = -20; /* deprecated in protocol v12 */ TALER_MHD_parse_request_snumber (connection,