aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-accounts-ID.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-accounts-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-accounts-ID.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-accounts-ID.c b/src/backend/taler-merchant-httpd_private-get-accounts-ID.c
index 6bc99d26..6e3a3860 100644
--- a/src/backend/taler-merchant-httpd_private-get-accounts-ID.c
+++ b/src/backend/taler-merchant-httpd_private-get-accounts-ID.c
@@ -83,8 +83,8 @@ TMH_private_get_accounts_ID (const struct TMH_RequestHandler *rh,
MHD_HTTP_OK,
GNUNET_JSON_pack_bool ("active",
tp.active),
- GNUNET_JSON_pack_string ("payto_uri",
- tp.payto_uri),
+ TALER_JSON_pack_full_payto ("payto_uri",
+ tp.payto_uri),
GNUNET_JSON_pack_data_auto ("h_wire",
&tp.h_wire),
GNUNET_JSON_pack_data_auto ("salt",
@@ -95,7 +95,7 @@ TMH_private_get_accounts_ID (const struct TMH_RequestHandler *rh,
/* We do not return the credentials, as they may
be sensitive */
json_decref (tp.credit_facade_credentials);
- GNUNET_free (tp.payto_uri);
+ GNUNET_free (tp.payto_uri.full_payto);
GNUNET_free (tp.credit_facade_url);
return ret;
}