gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant] branch stable updated (c9612d1 -> dbd76fb)


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch stable updated (c9612d1 -> dbd76fb)
Date: Mon, 11 Dec 2017 17:42:39 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a change to branch stable
in repository merchant.

    from c9612d1  get filename the right way
     add 3f2625a  include next_url in tip token
     add dbd76fb  make next_url mandatory

No new revisions were added by this update.

Summary of changes:
 src/backend/taler-merchant-httpd_tip-authorize.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_tip-authorize.c 
b/src/backend/taler-merchant-httpd_tip-authorize.c
index bcfca94..c55b41b 100644
--- a/src/backend/taler-merchant-httpd_tip-authorize.c
+++ b/src/backend/taler-merchant-httpd_tip-authorize.c
@@ -87,11 +87,13 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh,
   const char *instance;
   const char *justification;
   const char *pickup_url;
+  const char *next_url;
   struct GNUNET_JSON_Specification spec[] = {
     TALER_JSON_spec_amount ("amount", &amount),
     GNUNET_JSON_spec_string ("instance", &instance),
     GNUNET_JSON_spec_string ("justification", &justification),
     GNUNET_JSON_spec_string ("pickup_url", &pickup_url),
+    GNUNET_JSON_spec_string ("next_url", &next_url),
     GNUNET_JSON_spec_end()
   };
   json_t *root;
@@ -200,11 +202,12 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh,
                                   TALER_EC_TIP_AUTHORIZE_INSUFFICIENT_FUNDS,
                                   "Insufficient funds for tip");
   }
-  json_t *tip_token = json_pack ("{s:o, s:o, s:o, s:s, s:s}",
+  json_t *tip_token = json_pack ("{s:o, s:o, s:o, s:s, s:s, s:s}",
                                  "tip_id", GNUNET_JSON_from_data_auto 
(&tip_id),
                                  "expiration", GNUNET_JSON_from_time_abs 
(expiration),
                                  "amount", TALER_JSON_from_amount (&amount),
                                  "exchange_url", mi->tip_exchange,
+                                 "next_url", next_url,
                                  "pickup_url", pickup_url);
   char *tip_token_str = json_dumps (tip_token,  JSON_ENSURE_ASCII | 
JSON_COMPACT);
   json_decref (tip_token);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]