From b791a14c6118f4cdb1cf0257ab499324d3859e6d Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 7 Aug 2020 00:31:54 +0530 Subject: pass status URLs in template instead of using JS, fix remaining #6457 FIXMEs --- src/lib/merchant_api_tip_authorize.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lib/merchant_api_tip_authorize.c') diff --git a/src/lib/merchant_api_tip_authorize.c b/src/lib/merchant_api_tip_authorize.c index d2f4cd9a..de71b747 100644 --- a/src/lib/merchant_api_tip_authorize.c +++ b/src/lib/merchant_api_tip_authorize.c @@ -83,11 +83,13 @@ static int check_ok (struct TALER_MERCHANT_TipAuthorizeHandle *tao, const json_t *json) { - const char *taler_tip_url; + const char *tip_status_url; + const char *taler_tip_uri; struct GNUNET_HashCode tip_id; struct GNUNET_TIME_Absolute expiration_time; struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_string ("tip_redirect_url", &taler_tip_url), + GNUNET_JSON_spec_string ("tip_status_url", &tip_status_url), + GNUNET_JSON_spec_string ("taler_tip_uri", &taler_tip_uri), TALER_JSON_spec_absolute_time ("tip_expiration", &expiration_time), GNUNET_JSON_spec_fixed_auto ("tip_id", &tip_id), GNUNET_JSON_spec_end () @@ -116,7 +118,7 @@ check_ok (struct TALER_MERCHANT_TipAuthorizeHandle *tao, tao->cb (tao->cb_cls, &hr, &tip_id, - taler_tip_url, + taler_tip_uri, expiration_time); tao->cb = NULL; /* do not call twice */ GNUNET_JSON_parse_free (spec); -- cgit v1.2.3