merchant

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

commit af14d8eccd300e7ae969079394f4e6ab46decfc5
parent 94f05e79b7060301aabc293e35611861b6c23915
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 11 Nov 2019 19:41:27 +0100

more logging

Diffstat:
Msrc/backend/taler-merchant-httpd_check-payment.c | 14+++++++++++---
Msrc/backend/taler-merchant-httpd_pay.c | 3+++
2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_check-payment.c b/src/backend/taler-merchant-httpd_check-payment.c @@ -462,7 +462,9 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh, parse_contract_terms (cprc)) return cprc->ret; } - + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Checking payment status for order `%s'\n", + cprc->order_id); GNUNET_assert (NULL != cprc->contract_terms); /* Check if the order has been paid for. */ @@ -489,6 +491,10 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh, } else if (0 == qs) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Order `%s' was not yet paid for session `%s'\n", + cprc->order_id, + cprc->session_id); ret = send_pay_request (cprc); GNUNET_free_non_null (already_paid_order_id); return ret; @@ -517,8 +523,10 @@ MH_handler_check_payment (struct TMH_RequestHandler *rh, } if (0 == qs) { - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "not paid yet\n"); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Order `%s' (contract `%s') was not yet paid\n", + cprc->order_id, + GNUNET_h2s (&cprc->h_contract_terms)); return send_pay_request (cprc); } GNUNET_break (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs); diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c @@ -2057,6 +2057,9 @@ begin_transaction (struct PayContext *pc) return; } /* Payment succeeded, save in database */ + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Contract `%s' was fully paid\n", + GNUNET_h2s (&pc->h_contract_terms)); qs = db->mark_proposal_paid (db->cls, &pc->h_contract_terms, &pc->mi->pubkey);