[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: set refund deadline
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: set refund deadline if not in frontend offer |
Date: |
Sun, 12 Feb 2017 18:13: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 f6aca4d set refund deadline if not in frontend offer
f6aca4d is described below
commit f6aca4dce222986bfcbdcecac3aa04229eb870a9
Author: Florian Dold <address@hidden>
AuthorDate: Sun Feb 12 18:13:49 2017 +0100
set refund deadline if not in frontend offer
---
src/backend/taler-merchant-httpd_proposal.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/backend/taler-merchant-httpd_proposal.c
b/src/backend/taler-merchant-httpd_proposal.c
index 0552d7e..db728aa 100644
--- a/src/backend/taler-merchant-httpd_proposal.c
+++ b/src/backend/taler-merchant-httpd_proposal.c
@@ -184,6 +184,12 @@ proposal_put (struct MHD_Connection *connection, json_t
*order)
json_object_set (order, "timestamp", GNUNET_JSON_from_time_abs (now));
}
+ if (NULL == json_string_value (json_object_get (order, "refund_deadline")))
+ {
+ struct GNUNET_TIME_Absolute zero = { 0 };
+ json_object_set (order, "refund_deadline", GNUNET_JSON_from_time_abs
(zero));
+ }
+
/* 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 refund deadline if not in frontend offer,
gnunet <=