summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-22 19:22:04 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-22 19:22:04 +0200
commit0d05df558c80b88a75397bfeea0a4249103952f2 (patch)
tree19173db0fd4b106ae3c257406970d075f1a535cc /src/lib
parentca0fc7c0746cd355109bccf432b9ff78f34393e8 (diff)
downloadmerchant-0d05df558c80b88a75397bfeea0a4249103952f2.tar.gz
merchant-0d05df558c80b88a75397bfeea0a4249103952f2.tar.bz2
merchant-0d05df558c80b88a75397bfeea0a4249103952f2.zip
add h_contract to refund response
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/merchant_api_post_order_refund.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/merchant_api_post_order_refund.c b/src/lib/merchant_api_post_order_refund.c
index 834aea5d..08101999 100644
--- a/src/lib/merchant_api_post_order_refund.c
+++ b/src/lib/merchant_api_post_order_refund.c
@@ -95,14 +95,18 @@ handle_refund_finished (void *cls,
hr.ec = TALER_EC_INVALID_RESPONSE;
orh->cb (orh->cb_cls,
&hr,
+ NULL,
NULL);
break;
case MHD_HTTP_OK:
{
const char *taler_refund_uri;
+ struct GNUNET_HashCode h_contract;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("taler_refund_uri",
&taler_refund_uri),
+ GNUNET_JSON_spec_fixed_auto ("h_contract",
+ &h_contract),
GNUNET_JSON_spec_end ()
};
@@ -116,12 +120,14 @@ handle_refund_finished (void *cls,
hr.ec = TALER_EC_INVALID_RESPONSE;
orh->cb (orh->cb_cls,
&hr,
+ NULL,
NULL);
break;
}
orh->cb (orh->cb_cls,
&hr,
- taler_refund_uri);
+ taler_refund_uri,
+ &h_contract);
GNUNET_JSON_parse_free (spec);
}
break;
@@ -131,6 +137,7 @@ handle_refund_finished (void *cls,
hr.hint = TALER_JSON_get_error_hint (json);
orh->cb (orh->cb_cls,
&hr,
+ NULL,
NULL);
break;
default:
@@ -140,6 +147,7 @@ handle_refund_finished (void *cls,
&hr);
orh->cb (orh->cb_cls,
&hr,
+ NULL,
NULL);
break;
}