merchant

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

commit 4144e2306662a6e197bb5db4738244da0d30064f
parent 9628ac1ec778388e675727f889764c82c2711928
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 25 Oct 2020 20:17:19 +0100

fix compiler warning

Diffstat:
Msrc/lib/merchant_api_post_orders.c | 16++++------------
1 file changed, 4 insertions(+), 12 deletions(-)

diff --git 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;