diff options
Diffstat (limited to 'src/lib/merchant_api_delete_order.c')
-rw-r--r-- | src/lib/merchant_api_delete_order.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/merchant_api_delete_order.c b/src/lib/merchant_api_delete_order.c index 33a12294..a0cf941f 100644 --- a/src/lib/merchant_api_delete_order.c +++ b/src/lib/merchant_api_delete_order.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2020 Taler Systems SA + Copyright (C) 2020-2022 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software @@ -116,6 +116,7 @@ TALER_MERCHANT_order_delete ( struct GNUNET_CURL_Context *ctx, const char *backend_url, const char *order_id, + bool force, TALER_MERCHANT_OrderDeleteCallback cb, void *cb_cls) { @@ -129,8 +130,11 @@ TALER_MERCHANT_order_delete ( char *path; GNUNET_asprintf (&path, - "private/orders/%s", - order_id); + "private/orders/%s%s", + order_id, + force + ? "?force=yes" + : ""); odh->url = TALER_url_join (backend_url, path, |