gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated: add amount to tip-t


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: add amount to tip-token
Date: Thu, 30 Nov 2017 03:45:10 +0100

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

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new d5cde48  add amount to tip-token
d5cde48 is described below

commit d5cde4835d532b56018490744631950e0e5c8592
Author: Florian Dold <address@hidden>
AuthorDate: Thu Nov 30 03:45:05 2017 +0100

    add amount to tip-token
---
 src/backend/taler-merchant-httpd_tip-authorize.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_tip-authorize.c 
b/src/backend/taler-merchant-httpd_tip-authorize.c
index ba0886e..bcfca94 100644
--- a/src/backend/taler-merchant-httpd_tip-authorize.c
+++ b/src/backend/taler-merchant-httpd_tip-authorize.c
@@ -200,9 +200,10 @@ 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:s, s:s}",
+  json_t *tip_token = json_pack ("{s:o, s:o, s:o, 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,
                                  "pickup_url", pickup_url);
   char *tip_token_str = json_dumps (tip_token,  JSON_ENSURE_ASCII | 
JSON_COMPACT);

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



reply via email to

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