diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-01 13:09:06 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-01 13:09:13 +0100 |
commit | db448ff4ecf78e4568cd9f37d20ba8e691efe9b8 (patch) | |
tree | 4518bb3924b3b6c47fe367a8f9233b1d81efd768 /src/backend/taler-merchant-httpd_get-tips-ID.c | |
parent | ad966ab422bba81956d89f1918624b23df7deb52 (diff) | |
download | merchant-db448ff4ecf78e4568cd9f37d20ba8e691efe9b8.tar.gz merchant-db448ff4ecf78e4568cd9f37d20ba8e691efe9b8.tar.bz2 merchant-db448ff4ecf78e4568cd9f37d20ba8e691efe9b8.zip |
add next_url to GET tip response (#7655)
Diffstat (limited to 'src/backend/taler-merchant-httpd_get-tips-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_get-tips-ID.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_get-tips-ID.c b/src/backend/taler-merchant-httpd_get-tips-ID.c index b20de7e1..f9e6c8cd 100644 --- a/src/backend/taler-merchant-httpd_get-tips-ID.c +++ b/src/backend/taler-merchant-httpd_get-tips-ID.c @@ -162,6 +162,7 @@ TMH_get_tips_ID (const struct TMH_RequestHandler *rh, struct TALER_Amount total_picked_up; struct GNUNET_TIME_Timestamp expiration; char *exchange_url; + char *next_url; struct TALER_ReservePrivateKeyP reserve_priv; (void) rh; @@ -185,6 +186,7 @@ TMH_get_tips_ID (const struct TMH_RequestHandler *rh, &total_picked_up, &expiration, &exchange_url, + &next_url, &reserve_priv); if (0 > qs) { @@ -249,6 +251,8 @@ TMH_get_tips_ID (const struct TMH_RequestHandler *rh, &remaining), GNUNET_JSON_pack_string ("taler_tip_uri", uri), + GNUNET_JSON_pack_string ("next_url", + next_url), GNUNET_JSON_pack_string ("taler_tip_qrcode_svg", qr)); ret = TALER_TEMPLATING_reply (connection, @@ -278,12 +282,15 @@ TMH_get_tips_ID (const struct TMH_RequestHandler *rh, : MHD_HTTP_OK, GNUNET_JSON_pack_string ("exchange_url", exchange_url), + GNUNET_JSON_pack_string ("next_url", + next_url), TALER_JSON_pack_amount ("tip_amount", &remaining), GNUNET_JSON_pack_timestamp ("expiration", expiration)); } GNUNET_free (exchange_url); + GNUNET_free (next_url); return ret; } } |