summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_pay.c
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-10-20 14:18:55 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-10-20 14:18:55 +0200
commit28542396565a8c3feb9b8a34be68410373022b6e (patch)
treec6f6c444e4065a37d35d4b6eab9656ec14b7164a /src/backend/taler-merchant-httpd_pay.c
parent50959df54ff84280593f66453a998e83e81c75d8 (diff)
downloadmerchant-28542396565a8c3feb9b8a34be68410373022b6e.tar.gz
merchant-28542396565a8c3feb9b8a34be68410373022b6e.tar.bz2
merchant-28542396565a8c3feb9b8a34be68410373022b6e.zip
finishing with #4521
Diffstat (limited to 'src/backend/taler-merchant-httpd_pay.c')
-rw-r--r--src/backend/taler-merchant-httpd_pay.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c
index 7f84eb9f..c07d1270 100644
--- a/src/backend/taler-merchant-httpd_pay.c
+++ b/src/backend/taler-merchant-httpd_pay.c
@@ -1145,9 +1145,16 @@ MH_handler_pay (struct TMH_RequestHandler *rh,
now = GNUNET_TIME_absolute_get ();
if (now.abs_value_us > pc->pay_deadline.abs_value_us)
{
- /* Time expired, the customer cannot pay! */
+ /* Time expired, we don't accept this payment now! */
+ const char *pd_str;
+ pd_str = GNUNET_STRINGS_absolute_time_to_string (pc->pay_deadline);
+
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Attempt to get coins for expired contract. Deadline: '%s'\n",
+ pd_str);
+
return TMH_RESPONSE_reply_bad_request (connection,
- "The time to pay for this contract has expired");
+ "The time to pay for this contract has expired.");
}
if (GNUNET_OK !=