commit 378c3259c030aac0b8443fc61f3294853688ed66
parent 81e2d6b0446c5a2c212495f562d43e6807d12ca1
Author: Florian Dold <florian.dold@gmail.com>
Date: Thu, 18 Jan 2018 22:34:06 +0100
accept string amount for tip
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_tip-authorize.c b/src/backend/taler-merchant-httpd_tip-authorize.c
@@ -337,6 +337,11 @@ MH_handler_tip_authorize (struct TMH_RequestHandler *rh,
GNUNET_free (pickup_url);
}
+ if (GNUNET_OK != TMH_convert_amount (tac->root, "amount"))
+ return TMH_RESPONSE_reply_arg_invalid (connection,
+ TALER_EC_PARAMETER_MALFORMED,
+ "amount");
+
res = TMH_PARSE_json_data (connection,
tac->root,
spec);