merchant

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

commit 89a9423ab2020b9278808d7cdac97bd0d4635285
parent 61f5a1fb6baf24ba1c84e00f52e67a266ac3150b
Author: Florian Dold <florian.dold@gmail.com>
Date:   Tue, 11 Aug 2020 20:47:40 +0530

fix broken JSON packing, fix condition for order status 'gone'

Diffstat:
Msrc/backend/taler-merchant-httpd_get-orders-ID.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c b/src/backend/taler-merchant-httpd_get-orders-ID.c @@ -1099,9 +1099,9 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh, GNUNET_memcmp (&h, &god->h_contract_terms)) { - if (0 == GNUNET_is_zero (&god->claim_token)) + if (0 == GNUNET_is_zero (&god->h_contract_terms)) { - /* The client did not provide any claim token, just a wrong h_contract */ + /* The client provided a h_contract that's wrong, so complain! */ GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_FORBIDDEN, @@ -1195,6 +1195,7 @@ TMH_get_orders_ID (const struct TMH_RequestHandler *rh, else return TALER_MHD_reply_json_pack (connection, MHD_HTTP_GONE, + "{s:s}", "fulfillment_url", god->fulfillment_url); }