diff options
author | priscilla <priscilla.huang@efrei.net> | 2022-12-29 07:14:09 -0500 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2022-12-29 07:14:34 -0500 |
commit | 689bbc7a201067815cb0975703422854099d19ba (patch) | |
tree | d00d3bc13681f299fc28c9d9bcf595484b36c05d /src/lib/merchant_api_post_using_templates.c | |
parent | 99db83bca3b5dbe1399a642eb4192546bbfd24df (diff) |
using templates testing
Diffstat (limited to 'src/lib/merchant_api_post_using_templates.c')
-rw-r--r-- | src/lib/merchant_api_post_using_templates.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/merchant_api_post_using_templates.c b/src/lib/merchant_api_post_using_templates.c index 9a4aa93d..1985fba1 100644 --- a/src/lib/merchant_api_post_using_templates.c +++ b/src/lib/merchant_api_post_using_templates.c @@ -158,6 +158,7 @@ struct TALER_MERCHANT_UsingTemplatesPostHandle * TALER_MERCHANT_using_templates_post ( struct GNUNET_CURL_Context *ctx, const char *backend_url, + const char *template_id, const char *summary, const struct TALER_Amount *amount, TALER_MERCHANT_UsingTemplatesPostCallback cb, @@ -177,9 +178,17 @@ TALER_MERCHANT_using_templates_post ( utph->ctx = ctx; utph->cb = cb; utph->cb_cls = cb_cls; - utph->url = TALER_url_join (backend_url, - "/templates", - NULL); + { + char *path; + + GNUNET_asprintf (&path, + "templates/%s", + template_id); + utph->url = TALER_url_join (backend_url, + path, + NULL); + GNUNET_free (path); + } if (NULL == utph->url) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |