From 74ba46db39d3a906e819cd0ed48f1d46dffe9e38 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 14 Aug 2022 18:04:09 +0200 Subject: -work on new KYC logic: tests pass again --- src/testing/testing_api_cmd_withdraw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/testing/testing_api_cmd_withdraw.c') diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c index 6b77a35e7..877c9ca67 100644 --- a/src/testing/testing_api_cmd_withdraw.c +++ b/src/testing/testing_api_cmd_withdraw.c @@ -304,10 +304,6 @@ reserve_withdraw_cb (void *cls, GNUNET_YES)); } break; - case MHD_HTTP_ACCEPTED: - /* nothing to check */ - ws->kyc_uuid = wr->details.accepted.payment_target_uuid; - break; case MHD_HTTP_FORBIDDEN: /* nothing to check */ break; @@ -322,6 +318,8 @@ reserve_withdraw_cb (void *cls, break; case MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS: /* KYC required */ + ws->kyc_uuid = + wr->details.unavailable_for_legal_reasons.payment_target_uuid; break; default: /* Unsupported status code (by test harness) */ @@ -545,8 +543,10 @@ withdraw_traits (void *cls, (const char **) &ws->reserve_payto_uri), TALER_TESTING_make_trait_exchange_url ( (const char **) &ws->exchange_url), - TALER_TESTING_make_trait_age_commitment_proof (0, ws->age_commitment_proof), - TALER_TESTING_make_trait_h_age_commitment (0, ws->h_age_commitment), + TALER_TESTING_make_trait_age_commitment_proof (0, + ws->age_commitment_proof), + TALER_TESTING_make_trait_h_age_commitment (0, + ws->h_age_commitment), TALER_TESTING_trait_end () }; -- cgit v1.2.3