diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-14 18:04:09 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-14 18:04:09 +0200 |
commit | 74ba46db39d3a906e819cd0ed48f1d46dffe9e38 (patch) | |
tree | 53f050bacd2e634dc5e746a257b10be9294afa71 /src/exchange/taler-exchange-httpd_withdraw.c | |
parent | 913eacf506860a73043be09425d1c143b786e871 (diff) | |
download | exchange-74ba46db39d3a906e819cd0ed48f1d46dffe9e38.tar.gz exchange-74ba46db39d3a906e819cd0ed48f1d46dffe9e38.tar.bz2 exchange-74ba46db39d3a906e819cd0ed48f1d46dffe9e38.zip |
-work on new KYC logic: tests pass again
Diffstat (limited to 'src/exchange/taler-exchange-httpd_withdraw.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_withdraw.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/exchange/taler-exchange-httpd_withdraw.c b/src/exchange/taler-exchange-httpd_withdraw.c index 255f7d948..920147d4a 100644 --- a/src/exchange/taler-exchange-httpd_withdraw.c +++ b/src/exchange/taler-exchange-httpd_withdraw.c @@ -490,13 +490,8 @@ TEH_handler_withdraw (struct TEH_RequestContext *rc, GNUNET_JSON_parse_free (spec); if (! wc.kyc.ok) - { - 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); { MHD_RESULT ret; |