diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-20 17:44:06 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-20 17:44:06 +0100 |
commit | 2a52426a7cdc55f49f726f24ddc735d6c01decaa (patch) | |
tree | 877fdbd77d028f6650f8cdc1e80b6482d0d30d54 /src/backend/taler-merchant-httpd_post-orders-ID-pay.c | |
parent | 8ffaa360d505a40c74071a6cd3f534dfb4776c9f (diff) | |
download | merchant-2a52426a7cdc55f49f726f24ddc735d6c01decaa.tar.gz merchant-2a52426a7cdc55f49f726f24ddc735d6c01decaa.tar.bz2 merchant-2a52426a7cdc55f49f726f24ddc735d6c01decaa.zip |
preparations to store AML decision if any is returned by the exchange, incomplete, not really used
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-pay.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c index 61f232aa..41b526c9 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -760,7 +760,8 @@ deposit_get_callback ( NULL, /* no signature */ NULL, /* no signature */ now, - true); + true, + TALER_AML_NORMAL); GNUNET_break (qs > 0); break; case MHD_HTTP_ACCEPTED: @@ -773,7 +774,8 @@ deposit_get_callback ( NULL, /* no signature */ NULL, /* no signature */ now, - dr->details.accepted.kyc_ok); + dr->details.accepted.kyc_ok, + dr->details.accepted.aml_decision); GNUNET_break (qs > 0); break; default: @@ -841,6 +843,7 @@ process_kyc_with_exchange ( * @param exchange_url base URL of the exchange for which this is a status * @param last_check when did we last get an update on our KYC status from the exchange * @param kyc_ok true if we satisfied the KYC requirements + * @param aml_decision latest AML decision by the exchange */ static void kyc_cb ( @@ -850,12 +853,18 @@ kyc_cb ( const char *payto_uri, const char *exchange_url, struct GNUNET_TIME_Timestamp last_check, - bool kyc_ok) + bool kyc_ok, + enum TALER_AmlDecisionState aml_decision) { struct KycContext *kc = cls; + (void) h_wire; + (void) exchange_kyc_serial; + (void) payto_uri; + (void) exchange_url; kc->kyc_timestamp = last_check; kc->kyc_ok = kyc_ok; + /* FIXME: act on aml_decision? */ } |