diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-04 15:19:57 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-04 15:19:57 +0200 |
commit | 93943bdb5b6ab43b6bcfdb721f67674cc89250d6 (patch) | |
tree | 17e98a062ba886f1389ce99f5cb2fecb242a5f76 /src/lib | |
parent | 3e99c50c0f940fda34585225c38c9014cc1110d0 (diff) |
add KYC errors for p2p payments
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/exchange_api_batch_withdraw.c | 2 | ||||
-rw-r--r-- | src/lib/exchange_api_purse_create_with_merge.c | 5 | ||||
-rw-r--r-- | src/lib/exchange_api_withdraw.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/exchange_api_batch_withdraw.c b/src/lib/exchange_api_batch_withdraw.c index 295695d8f..e5d3c7f9c 100644 --- a/src/lib/exchange_api_batch_withdraw.c +++ b/src/lib/exchange_api_batch_withdraw.c @@ -203,7 +203,7 @@ handle_reserve_batch_withdraw_finished ( wr.details.success.num_coins = wh->num_coins; break; } - case MHD_HTTP_ACCEPTED: + case MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS: { struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_uint64 ("payment_target_uuid", diff --git a/src/lib/exchange_api_purse_create_with_merge.c b/src/lib/exchange_api_purse_create_with_merge.c index 32b88c597..af5b554e4 100644 --- a/src/lib/exchange_api_purse_create_with_merge.c +++ b/src/lib/exchange_api_purse_create_with_merge.c @@ -224,6 +224,11 @@ handle_purse_create_with_merge_finished (void *cls, dr.hr.ec = TALER_JSON_get_error_code (j); dr.hr.hint = TALER_JSON_get_error_hint (j); break; + case MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS: + /* aka KYC required */ + dr.hr.ec = TALER_JSON_get_error_code (j); + dr.hr.hint = TALER_JSON_get_error_hint (j); + break; case MHD_HTTP_INTERNAL_SERVER_ERROR: dr.hr.ec = TALER_JSON_get_error_code (j); dr.hr.hint = TALER_JSON_get_error_hint (j); diff --git a/src/lib/exchange_api_withdraw.c b/src/lib/exchange_api_withdraw.c index 6bb579c2c..b8ab1df44 100644 --- a/src/lib/exchange_api_withdraw.c +++ b/src/lib/exchange_api_withdraw.c @@ -157,7 +157,7 @@ handle_reserve_withdraw_finished ( wr.details.success.exchange_vals = wh->alg_values; break; } - case MHD_HTTP_ACCEPTED: + case MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS: { struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_uint64 ("payment_target_uuid", |