diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-11 00:31:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-11 00:31:59 +0200 |
commit | 19c56c7eb81efc272d864d6765d7d61943141ce2 (patch) | |
tree | e566702badb4bae31a3d424cbdf523a8e44004d1 /src/backend/taler-merchant-httpd_poll-payment.c | |
parent | 6d978efe14aa90564ce9257a23bcb2854ba07036 (diff) | |
download | merchant-19c56c7eb81efc272d864d6765d7d61943141ce2.tar.gz merchant-19c56c7eb81efc272d864d6765d7d61943141ce2.tar.bz2 merchant-19c56c7eb81efc272d864d6765d7d61943141ce2.zip |
adding test for #5985
Diffstat (limited to 'src/backend/taler-merchant-httpd_poll-payment.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_poll-payment.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_poll-payment.c b/src/backend/taler-merchant-httpd_poll-payment.c index 49f94896..6ca4fcce 100644 --- a/src/backend/taler-merchant-httpd_poll-payment.c +++ b/src/backend/taler-merchant-httpd_poll-payment.c @@ -459,7 +459,6 @@ MH_handler_poll_payment (struct TMH_RequestHandler *rh, } } /* end of first-time initialization / sanity checks */ - db->preflight (db->cls); /* Check if the order has been paid for. */ @@ -526,6 +525,7 @@ MH_handler_poll_payment (struct TMH_RequestHandler *rh, /* Accumulate refunds, if any. */ for (unsigned int i = 0; i<MAX_RETRIES; i++) { + pprc->refunded = GNUNET_NO; qs = db->get_refunds_from_contract_terms_hash (db->cls, &mi->pubkey, &pprc->h_contract_terms, @@ -557,7 +557,9 @@ MH_handler_poll_payment (struct TMH_RequestHandler *rh, if (0 != remaining.rel_value_us) { /* yes, indeed suspend */ - pprc->refunded = GNUNET_NO; + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Awaiting refund exceeding %s\n", + TALER_amount2s (&pprc->min_refund)); suspend_pprc (pprc); return MHD_YES; } |