diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-01-31 18:39:29 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-01-31 18:39:29 +0100 |
commit | 07cc75f2055ba4ae77d8272ea2cedffbb54b6842 (patch) | |
tree | 1511bfbb94b06f37b13247ce59fba80da5251368 /src/backend/taler-merchant-httpd_tip-authorize.c | |
parent | 7cc075796dd82a4d6e8e0e60433445afb589accf (diff) | |
download | merchant-07cc75f2055ba4ae77d8272ea2cedffbb54b6842.tar.gz merchant-07cc75f2055ba4ae77d8272ea2cedffbb54b6842.tar.bz2 merchant-07cc75f2055ba4ae77d8272ea2cedffbb54b6842.zip |
use url helpers from taler util
Diffstat (limited to 'src/backend/taler-merchant-httpd_tip-authorize.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_tip-authorize.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/backend/taler-merchant-httpd_tip-authorize.c b/src/backend/taler-merchant-httpd_tip-authorize.c index 5eb274df..f7518839 100644 --- a/src/backend/taler-merchant-httpd_tip-authorize.c +++ b/src/backend/taler-merchant-httpd_tip-authorize.c @@ -20,6 +20,7 @@ */ #include "platform.h" #include <jansson.h> +#include <taler/taler_util.h> #include <taler/taler_json_lib.h> #include "taler-merchant-httpd.h" #include "taler-merchant-httpd_mhd.h" @@ -329,9 +330,9 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh, if (NULL == json_object_get (tac->root, "pickup_url")) { - char *pickup_url = TMH_make_absolute_backend_url (connection, - "tip-pickup", - NULL); + char *pickup_url = TALER_url_absolute_mhd (connection, + "tip-pickup", + NULL); GNUNET_assert (NULL != pickup_url); json_object_set_new (tac->root, "pickup_url", json_string (pickup_url)); GNUNET_free (pickup_url); @@ -431,9 +432,9 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh, "pickup_url", tac->pickup_url); tip_token_str = json_dumps (tip_token, JSON_COMPACT); GNUNET_assert (NULL != tip_token_str); - tip_redirect_url = TMH_make_absolute_backend_url (connection, "public/trigger-pay", - "tip_token", tip_token_str, - NULL); + tip_redirect_url = TALER_url_absolute_mhd (connection, "public/trigger-pay", + "tip_token", tip_token_str, + NULL); GNUNET_assert (NULL != tip_redirect_url); /* FIXME: This is pretty redundant, but we want to support some older * merchant implementations. Newer ones should only get the |