commit d5cde4835d532b56018490744631950e0e5c8592
parent 280aecd3d6e4a87373af2e36c86389799cffb5bf
Author: Florian Dold <florian.dold@gmail.com>
Date: Thu, 30 Nov 2017 03:45:05 +0100
add amount to tip-token
Diffstat:
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
@@ -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);