summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_post_orders.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_post_orders.c')
-rw-r--r--src/lib/merchant_api_post_orders.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/lib/merchant_api_post_orders.c b/src/lib/merchant_api_post_orders.c
index aa29bea3..a6f1ec71 100644
--- a/src/lib/merchant_api_post_orders.c
+++ b/src/lib/merchant_api_post_orders.c
@@ -131,10 +131,6 @@ handle_post_order_finished (void *cls,
the merchant is buggy (or API version conflict);
just pass JSON reply to the application */
break;
- case MHD_HTTP_CONFLICT:
- hr.ec = TALER_JSON_get_error_code (json);
- hr.hint = TALER_JSON_get_error_hint (json);
- break;
case MHD_HTTP_FORBIDDEN:
/* Nothing really to verify, merchant says one
of the signatures is invalid; as we checked them,
@@ -150,20 +146,19 @@ handle_post_order_finished (void *cls,
hr.hint = TALER_JSON_get_error_hint (json);
break;
case MHD_HTTP_CONFLICT:
- /* Nothing really to verify */
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);
break;
+ case MHD_HTTP_GONE:
+ /* The quantity of some product requested was not available. */
+ // FIXME: parse the OutOfStockResponse.
+ break;
case MHD_HTTP_INTERNAL_SERVER_ERROR:
/* Server had an internal issue; we should retry,
but this API leaves this to the application */
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);
break;
- case MHD_HTTP_GONE:
- /* The quantity of some product requested was not available. */
- // FIXME: parse the OutOfStockResponse.
- break;
default:
/* unexpected response code */
hr.ec = TALER_JSON_get_error_code (json);
@@ -226,10 +221,7 @@ TALER_MERCHANT_orders_post2 (
struct TALER_MERCHANT_PostOrdersOperation *po;
json_t *req;
CURL *eh;
- const char *delay_s;
- delay_s = GNUNET_STRINGS_relative_time_to_string (refund_delay,
- GNUNET_NO);
po = GNUNET_new (struct TALER_MERCHANT_PostOrdersOperation);
po->ctx = ctx;
po->cb = cb;