From a046899b2ccd452f786051a41bc385cfb574bbcb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 20 Aug 2022 21:29:29 +0200 Subject: -major KYC update, fixes misc. issues --- src/testing/testing_api_cmd_deposits_get.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'src/testing/testing_api_cmd_deposits_get.c') diff --git a/src/testing/testing_api_cmd_deposits_get.c b/src/testing/testing_api_cmd_deposits_get.c index 5f1be9bb4..8fd4e813c 100644 --- a/src/testing/testing_api_cmd_deposits_get.c +++ b/src/testing/testing_api_cmd_deposits_get.c @@ -50,10 +50,18 @@ struct TrackTransactionState unsigned int expected_response_code; /** - * Set to the KYC UUID *if* the exchange replied with + * Set to the KYC requirement payto hash *if* the exchange replied with a + * request for KYC (#MHD_HTTP_ACCEPTED). + * Note: set based on our @e merchant_payto_uri, as + * the exchange does not respond with the payto hash. + */ + struct TALER_PaytoHashP h_payto; + + /** + * Set to the KYC requirement row *if* the exchange replied with * a request for KYC (#MHD_HTTP_ACCEPTED). */ - uint64_t kyc_uuid; + uint64_t requirement_row; /** * Reference to any operation that can provide a transaction. @@ -158,7 +166,10 @@ deposit_wtid_cb (void *cls, break; case MHD_HTTP_ACCEPTED: /* allowed, nothing to check here */ - tts->kyc_uuid = dr->details.accepted.legitimization_uuid; + TALER_payto_hash (tts->merchant_payto_uri, + &tts->h_payto); + tts->requirement_row + = dr->details.accepted.requirement_row; break; case MHD_HTTP_NOT_FOUND: /* allowed, nothing to check here */ @@ -321,7 +332,10 @@ track_transaction_traits (void *cls, struct TrackTransactionState *tts = cls; struct TALER_TESTING_Trait traits[] = { TALER_TESTING_make_trait_wtid (&tts->wtid), - TALER_TESTING_make_trait_legitimization_uuid (&tts->kyc_uuid), + TALER_TESTING_make_trait_legi_requirement_row ( + &tts->requirement_row), + TALER_TESTING_make_trait_h_payto ( + &tts->h_payto), TALER_TESTING_make_trait_payto_uri ( (const char **) &tts->merchant_payto_uri), TALER_TESTING_trait_end () -- cgit v1.2.3