diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-08-07 00:31:54 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-08-07 00:31:54 +0530 |
commit | b791a14c6118f4cdb1cf0257ab499324d3859e6d (patch) | |
tree | 9bba328d67e2894c2c54a735ebd99a24d3ccf39d /src/backend/taler-merchant-httpd_get-orders-ID.h | |
parent | 5698d609efd715668e24c22e20fed9d952723852 (diff) | |
download | merchant-b791a14c6118f4cdb1cf0257ab499324d3859e6d.tar.gz merchant-b791a14c6118f4cdb1cf0257ab499324d3859e6d.tar.bz2 merchant-b791a14c6118f4cdb1cf0257ab499324d3859e6d.zip |
pass status URLs in template instead of using JS, fix remaining #6457 FIXMEs
Diffstat (limited to 'src/backend/taler-merchant-httpd_get-orders-ID.h')
-rw-r--r-- | src/backend/taler-merchant-httpd_get-orders-ID.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.h b/src/backend/taler-merchant-httpd_get-orders-ID.h index 1eb9a18a..d5d33fac 100644 --- a/src/backend/taler-merchant-httpd_get-orders-ID.h +++ b/src/backend/taler-merchant-httpd_get-orders-ID.h @@ -42,6 +42,22 @@ TMH_make_taler_pay_uri (struct MHD_Connection *con, const char *instance_id, struct TALER_ClaimTokenP *claim_token); +/** + * Create a http(s) URL for the given @a con and @a order_id + * and @a instance_id to display the /orders/{order_id} page. + * + * @param con HTTP connection + * @param order_id the order id + * @param instance_id instance, may be "default" + * @param claim_token claim token for the order, may be NULL + * @return corresponding http(s):// URL, or NULL on missing "host" + */ +char * +TMH_make_order_status_url (struct MHD_Connection *con, + const char *order_id, + const char *instance_id, + struct TALER_ClaimTokenP *claim_token); + /** * Handle a GET "/orders/$ID" request. |