summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_post-orders-ID-claim.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-02 17:11:55 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-02 17:11:55 +0200
commitdcc083c0959d395bcd4bcf9aee276eb96ea76dee (patch)
tree4920a7e2ef9edce96420cc4f2e746cd21672d1cf /src/backend/taler-merchant-httpd_post-orders-ID-claim.c
parent3528056f9afa9b540ba4ca3f57eb581e5b514540 (diff)
downloadmerchant-dcc083c0959d395bcd4bcf9aee276eb96ea76dee.tar.gz
merchant-dcc083c0959d395bcd4bcf9aee276eb96ea76dee.tar.bz2
merchant-dcc083c0959d395bcd4bcf9aee276eb96ea76dee.zip
POST /orders/ID/refund implementation
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-claim.c')
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-claim.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-claim.c b/src/backend/taler-merchant-httpd_post-orders-ID-claim.c
index 6b3a9229..17ef0138 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-claim.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-claim.c
@@ -176,18 +176,10 @@ TMH_post_orders_ID_claim (const struct TMH_RequestHandler *rh,
res = TALER_MHD_parse_json_data (connection,
hc->request_body,
spec);
- /* json is malformed */
- if (GNUNET_NO == res)
- {
- GNUNET_break_op (0);
- return MHD_YES;
- }
- /* other internal errors might have occurred */
- if (GNUNET_SYSERR == res)
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_PARAMETER_MISSING,
- "nonce");
+ if (GNUNET_OK != res)
+ return (GNUNET_NO == res)
+ ? MHD_YES
+ : MHD_NO;
}
contract_terms = NULL;
for (unsigned int i = 0; i<MAX_RETRIES; i++)