diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-11 23:35:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-11 23:35:33 +0200 |
commit | 1009084e94b8e8cf19e3b5568c3cccaba2bd2209 (patch) | |
tree | a346997dedd05f685ba7addc59e288dfa550ad0e /src/exchange/taler-exchange-httpd_deposits_get.c | |
parent | b061ea85c84facfc78c34edface367c5f040bc9c (diff) |
major rework of the KYC logic, making it more configurable, not complete, but tests pass again
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposits_get.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_deposits_get.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposits_get.c b/src/exchange/taler-exchange-httpd_deposits_get.c index 97618a94..eec81569 100644 --- a/src/exchange/taler-exchange-httpd_deposits_get.c +++ b/src/exchange/taler-exchange-httpd_deposits_get.c @@ -40,12 +40,12 @@ struct DepositWtidContext /** * Hash over the proposal data of the contract for which this deposit is made. */ - struct TALER_PrivateContractHashP h_contract_terms GNUNET_PACKED; + struct TALER_PrivateContractHashP h_contract_terms; /** * Hash over the wiring information of the merchant. */ - struct TALER_MerchantWireHashP h_wire GNUNET_PACKED; + struct TALER_MerchantWireHashP h_wire; /** * The Merchant's public key. The deposit inquiry request is to be @@ -251,8 +251,12 @@ handle_track_transaction_request ( return TALER_MHD_REPLY_JSON_PACK ( connection, MHD_HTTP_ACCEPTED, - GNUNET_JSON_pack_uint64 ("payment_target_uuid", - ctx->kyc.payment_target_uuid), + GNUNET_JSON_pack_allow_null ( + (0 == ctx->kyc.payment_target_uuid) + ? GNUNET_JSON_pack_string ("legitimization_uuid", + NULL) + : GNUNET_JSON_pack_uint64 ("legitimization_uuid", + ctx->kyc.payment_target_uuid)), GNUNET_JSON_pack_bool ("kyc_ok", ctx->kyc.ok), GNUNET_JSON_pack_timestamp ("execution_time", |