summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_wallet_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_wallet_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_wallet_post_order_refund.c')
-rw-r--r--src/lib/merchant_api_wallet_post_order_refund.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/merchant_api_wallet_post_order_refund.c b/src/lib/merchant_api_wallet_post_order_refund.c
index ff19b09e..e2438cba 100644
--- a/src/lib/merchant_api_wallet_post_order_refund.c
+++ b/src/lib/merchant_api_wallet_post_order_refund.c
@@ -135,7 +135,7 @@ handle_refund_finished (void *cls,
unsigned int refund_len;
struct GNUNET_JSON_Specification spec[] = {
TALER_JSON_spec_amount_any ("refund_amount",
- &refund_amount),
+ &refund_amount),
GNUNET_JSON_spec_json ("refunds",
&refunds),
GNUNET_JSON_spec_fixed_auto ("merchant_pub",
@@ -215,7 +215,7 @@ handle_refund_finished (void *cls,
GNUNET_JSON_spec_fixed_auto ("coin_pub",
&rd->coin_pub),
TALER_JSON_spec_amount_any ("refund_amount",
- &rd->refund_amount),
+ &rd->refund_amount),
GNUNET_JSON_spec_end ()
};
@@ -242,7 +242,7 @@ handle_refund_finished (void *cls,
GNUNET_JSON_spec_uint64 ("rtransaction_id",
&rd->rtransaction_id),
TALER_JSON_spec_amount_any ("refund_amount",
- &rd->refund_amount),
+ &rd->refund_amount),
GNUNET_JSON_spec_end ()
};
@@ -378,10 +378,9 @@ TALER_MERCHANT_wallet_post_order_refund (
GNUNET_free (orh);
return NULL;
}
- req = json_pack ("{s:o}",
- "h_contract",
- GNUNET_JSON_from_data_auto (h_contract_terms));
- GNUNET_assert (NULL != req);
+ req = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_data_auto ("h_contract",
+ h_contract_terms));
eh = curl_easy_init ();
GNUNET_assert (NULL != eh);
if (GNUNET_OK !=