aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
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;
}