merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit f6aca4dce222986bfcbdcecac3aa04229eb870a9
parent 88f323a71e891c609874d1bb4fa11acebbb72ac0
Author: Florian Dold <florian.dold@gmail.com>
Date:   Sun, 12 Feb 2017 18:13:49 +0100

set refund deadline if not in frontend offer

Diffstat:
Msrc/backend/taler-merchant-httpd_proposal.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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)