diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-19 10:21:29 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-19 10:21:29 +0100 |
commit | 06e2e8022c01f2a2866eb79ed38552ef5ac2a6b2 (patch) | |
tree | bec032926469f5506d9051a9b1efa10066921ab7 /src/kyclogic | |
parent | aa5e7d2ad5e712434f32ab41b63d53bb897c6105 (diff) | |
download | exchange-06e2e8022c01f2a2866eb79ed38552ef5ac2a6b2.tar.gz exchange-06e2e8022c01f2a2866eb79ed38552ef5ac2a6b2.tar.bz2 exchange-06e2e8022c01f2a2866eb79ed38552ef5ac2a6b2.zip |
return KYC requirement row when AML imposed KYC requirements on withdraw; return KYC choices in new /config endpoint
Diffstat (limited to 'src/kyclogic')
-rw-r--r-- | src/kyclogic/kyclogic_api.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c index 9f35743cd..4c465ad10 100644 --- a/src/kyclogic/kyclogic_api.c +++ b/src/kyclogic/kyclogic_api.c @@ -286,6 +286,23 @@ TALER_KYCLOGIC_check_satisfiable ( } +json_t * +TALER_KYCLOGIC_get_satisfiable () +{ + json_t *requirements; + + requirements = json_array (); + GNUNET_assert (NULL != requirements); + for (unsigned int i = 0; i<num_kyc_checks; i++) + GNUNET_assert ( + 0 == + json_array_append_new ( + requirements, + json_string (kyc_checks[i]->name))); + return requirements; +} + + /** * Load KYC logic plugin. * |