diff options
Diffstat (limited to 'src/testing/testing_api_cmd_post_account.c')
-rw-r--r-- | src/testing/testing_api_cmd_post_account.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/testing/testing_api_cmd_post_account.c b/src/testing/testing_api_cmd_post_account.c index 057ab060..85734c7a 100644 --- a/src/testing/testing_api_cmd_post_account.c +++ b/src/testing/testing_api_cmd_post_account.c @@ -57,7 +57,7 @@ struct PostAccountState /** * RFC 8905 URI for the account to create. */ - char *payto_uri; + struct TALER_FullPayto payto_uri; /** * Credit facade URL for the account to create. @@ -176,7 +176,7 @@ post_account_traits (void *cls, &pps->h_wire), TALER_TESTING_make_trait_payto_uris ( 0, - pps->payto_uri), + &pps->payto_uri), TALER_TESTING_make_trait_merchant_base_url ( pps->merchant_url), TALER_TESTING_trait_end (), @@ -208,7 +208,7 @@ post_account_cleanup (void *cls, "POST /account operation did not complete\n"); TALER_MERCHANT_accounts_post_cancel (pas->aph); } - GNUNET_free (pas->payto_uri); + GNUNET_free (pas->payto_uri.full_payto); GNUNET_free (pas->credit_facade_url); json_decref (pas->credit_facade_credentials); GNUNET_free (pas); @@ -219,7 +219,7 @@ struct TALER_TESTING_Command TALER_TESTING_cmd_merchant_post_account ( const char *label, const char *merchant_url, - const char *payto_uri, + struct TALER_FullPayto payto_uri, const char *credit_facade_url, const json_t *credit_facade_credentials, unsigned int http_status) @@ -228,7 +228,8 @@ TALER_TESTING_cmd_merchant_post_account ( pas = GNUNET_new (struct PostAccountState); pas->merchant_url = merchant_url; - pas->payto_uri = GNUNET_strdup (payto_uri); + pas->payto_uri.full_payto + = GNUNET_strdup (payto_uri.full_payto); if (NULL != credit_facade_url) pas->credit_facade_url = GNUNET_strdup (credit_facade_url); if (NULL != credit_facade_credentials) |