aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_batch-withdraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_batch-withdraw.c')
-rw-r--r--src/exchange/taler-exchange-httpd_batch-withdraw.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_batch-withdraw.c b/src/exchange/taler-exchange-httpd_batch-withdraw.c
index 9e24ff4c..635a968d 100644
--- a/src/exchange/taler-exchange-httpd_batch-withdraw.c
+++ b/src/exchange/taler-exchange-httpd_batch-withdraw.c
@@ -327,11 +327,8 @@ generate_reply_success (const struct TEH_RequestContext *rc,
if (! wc->kyc.ok)
{
/* KYC required */
- return TALER_MHD_REPLY_JSON_PACK (
- rc->connection,
- MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS,
- GNUNET_JSON_pack_uint64 ("payment_target_uuid",
- wc->kyc.payment_target_uuid));
+ return TEH_RESPONSE_reply_kyc_required (rc->connection,
+ &wc->kyc);
}
sigs = json_array ();