diff options
-rw-r--r-- | src/backend/taler-merchant-httpd_get-orders-ID.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_get-orders-ID.c b/src/backend/taler-merchant-httpd_get-orders-ID.c index a6912b79..6cfcfbce 100644 --- a/src/backend/taler-merchant-httpd_get-orders-ID.c +++ b/src/backend/taler-merchant-httpd_get-orders-ID.c @@ -626,13 +626,15 @@ suspend_god (struct GetOrderData *god) * @param order_id the order id * @param session_id session, may be NULL * @param instance_id instance, may be "default" + * @param claim_token claim token for the order, may be NULL * @return corresponding taler://pay/ URI, or NULL on missing "host" */ char * TMH_make_taler_pay_uri (struct MHD_Connection *con, const char *order_id, const char *session_id, - const char *instance_id) + const char *instance_id, + struct TALER_ClaimTokenP *claim_token) { const char *host; const char *forwarded_host; @@ -686,6 +688,14 @@ TMH_make_taler_pay_uri (struct MHD_Connection *con, order_id); GNUNET_buffer_write_path (&buf, (session_id == NULL) ? "" : session_id); + if (GNUNET_NO == GNUNET_is_zero (claim_token)) + { + GNUNET_buffer_write_str (&buf, + "&c="); + GNUNET_buffer_write_data_encoded (&buf, + claim_token, + sizeof (struct TALER_ClaimTokenP)); + } return GNUNET_buffer_reap_str (&buf); } |