diff options
Diffstat (limited to 'src/lib/merchant_api_post_order_refund.c')
-rw-r--r-- | src/lib/merchant_api_post_order_refund.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/merchant_api_post_order_refund.c b/src/lib/merchant_api_post_order_refund.c index 63ed2f2c..9829e187 100644 --- a/src/lib/merchant_api_post_order_refund.c +++ b/src/lib/merchant_api_post_order_refund.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014, 2015, 2016, 2017, 2019, 2020 Taler Systems SA + Copyright (C) 2014-2021 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 @@ -215,9 +215,11 @@ TALER_MERCHANT_post_order_refund (struct GNUNET_CURL_Context *ctx, GNUNET_free (orh); return NULL; } - req = json_pack ("{s:o, s:s}", - "refund", TALER_JSON_from_amount (refund), - "reason", reason); + req = GNUNET_JSON_PACK ( + TALER_JSON_pack_amount ("refund", + refund), + GNUNET_JSON_pack_string ("reason", + reason)); GNUNET_assert (NULL != req); eh = curl_easy_init (); GNUNET_assert (NULL != eh); |