summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_post_order_refund.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-01 22:49:04 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-01 22:49:04 +0200
commit92b86cc5a7277de1a3b3ab55aaf37c83a649930e (patch)
treeeef73525a65c6fe6825559f050b8ea971ca8302a /src/lib/merchant_api_post_order_refund.c
parent4e18bf19dfed52aa448a0b0d8547c0be182ba36a (diff)
downloadmerchant-92b86cc5a7277de1a3b3ab55aaf37c83a649930e.tar.gz
merchant-92b86cc5a7277de1a3b3ab55aaf37c83a649930e.tar.bz2
merchant-92b86cc5a7277de1a3b3ab55aaf37c83a649930e.zip
finish implementing #6935
Diffstat (limited to 'src/lib/merchant_api_post_order_refund.c')
-rw-r--r--src/lib/merchant_api_post_order_refund.c10
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);