summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-orders-ID.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-06-14 17:22:05 +0200
committerChristian Grothoff <christian@grothoff.org>2020-06-14 17:22:05 +0200
commit8716f80c3ad14e5bd8a7af0b424e480aafa18c57 (patch)
tree1151d8807675b420f6012f37100adca978190e6b /src/backend/taler-merchant-httpd_private-get-orders-ID.c
parent458d1ac531f52e7802e054bfd151631af4d9d6e0 (diff)
downloadmerchant-8716f80c3ad14e5bd8a7af0b424e480aafa18c57.tar.gz
merchant-8716f80c3ad14e5bd8a7af0b424e480aafa18c57.tar.bz2
merchant-8716f80c3ad14e5bd8a7af0b424e480aafa18c57.zip
implement merchant_api_merchant_get_order.c
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders-ID.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
index 5c7d6d86..02fda297 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
@@ -825,11 +825,10 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh,
}
if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs)
{
- GNUNET_break_op (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_NOT_FOUND,
TALER_EC_GET_ORDERS_ORDER_NOT_FOUND,
- "Did not find order in DB");
+ "Did not find contract terms for order in DB");
}
/* extract the fulfillment URL and total amount from the contract terms! */
@@ -935,11 +934,9 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh,
hc->instance->settings.id);
ret = TALER_MHD_reply_json_pack (connection,
MHD_HTTP_OK,
- "{s:s, s:O, s:b, s:s}",
+ "{s:s, s:b, s:s}",
"taler_pay_uri",
taler_pay_uri,
- "contract_terms",
- gorc->contract_terms,
"paid",
false,
"already_paid_order_id",