commit 3f2625a0517cb37d69142c804839012834bbcc51
parent c9612d18e5e6252138d7d7dc0c32f34beab5677e
Author: Florian Dold <florian.dold@gmail.com>
Date: Mon, 11 Dec 2017 17:30:43 +0100
include next_url in tip token
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_tip-authorize.c b/src/backend/taler-merchant-httpd_tip-authorize.c
@@ -206,6 +206,9 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh,
"amount", TALER_JSON_from_amount (&amount),
"exchange_url", mi->tip_exchange,
"pickup_url", pickup_url);
+ json_t *next_url = json_object_get (root, "next_url");
+ if (json_is_string (next_url))
+ json_object_set (tip_token, "next_url", next_url);
char *tip_token_str = json_dumps (tip_token, JSON_ENSURE_ASCII | JSON_COMPACT);
json_decref (tip_token);
json_decref (root);