[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: set pay deadline if
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: set pay deadline if not in frontent order |
Date: |
Sun, 12 Feb 2017 18:17:52 +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 8476ecf set pay deadline if not in frontent order
8476ecf is described below
commit 8476ecfc8b80295e6ed82e9a43a4ca3894ab499c
Author: Florian Dold <address@hidden>
AuthorDate: Sun Feb 12 18:17:37 2017 +0100
set pay deadline if not in frontent order
---
src/backend/taler-merchant-httpd_proposal.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/backend/taler-merchant-httpd_proposal.c
b/src/backend/taler-merchant-httpd_proposal.c
index db728aa..7df1742 100644
--- a/src/backend/taler-merchant-httpd_proposal.c
+++ b/src/backend/taler-merchant-httpd_proposal.c
@@ -190,6 +190,15 @@ proposal_put (struct MHD_Connection *connection, json_t
*order)
json_object_set (order, "refund_deadline", GNUNET_JSON_from_time_abs
(zero));
}
+ if (NULL == json_string_value (json_object_get (order, "pay_deadline")))
+ {
+ struct GNUNET_TIME_Absolute t;
+ /* FIXME: read the delay for pay_deadline from config */
+ t = GNUNET_TIME_absolute_add (GNUNET_TIME_absolute_get (),
GNUNET_TIME_UNIT_HOURS);
+ (void) GNUNET_TIME_round_abs (&t);
+ json_object_set (order, "pay_deadline", GNUNET_JSON_from_time_abs (t));
+ }
+
/* extract fields we need to sign separately */
res = TMH_PARSE_json_data (connection, order, spec);
if (GNUNET_NO == res)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: set pay deadline if not in frontent order,
gnunet <=