merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit b6a2c061588ab34e8868db4970e77653b36b97b4
parent 225e89e6a525f5788cd6b61b3b79aa8f633b9ede
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Thu,  6 Dec 2018 17:58:42 +0100

Use exchange-lib function to get the exchange's base URL.

Diffstat:
Msrc/lib/testing_api_cmd_tip.c | 13+------------
1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/src/lib/testing_api_cmd_tip.c b/src/lib/testing_api_cmd_tip.c @@ -30,17 +30,6 @@ #include "taler_merchant_testing_lib.h" /** - * Obtain the URL to use for an API request. - * - * @param h the exchange handle to query - * @param path Taler API path (i.e. "/reserve/withdraw") - * @return the full URL to use with cURL - */ -char * -MAH_path_to_url (struct TALER_EXCHANGE_Handle *h, - const char *path); - -/** * State for a /tip-pickup CMD. */ struct TipPickupState @@ -958,7 +947,7 @@ tip_pickup_run (void *cls, const struct GNUNET_HashCode *tip_id; tps->is = is; - tps->exchange_url = MAH_path_to_url (tps->exchange, "/"); + tps->exchange_url = TALER_EXCHANGE_get_base_url (tps->exchange); if (NULL == tps->replay_reference) { replay_cmd = NULL;