merchant

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

commit 9cf327e0ec4ef49bfc6b0d1f5233f5d09108efb3
parent 69a320056c225d389ef4819529b9ab1cc425a867
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  2 Nov 2026 21:29:45 +0100

break up phases more

Diffstat:
Msrc/backend/taler-merchant-httpd_post-orders-ORDER_ID-pay.c | 20+++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_post-orders-ORDER_ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ORDER_ID-pay.c @@ -947,7 +947,7 @@ resume_pay_with_response (struct PayContext *pc, pc->response = response; GNUNET_log ( GNUNET_ERROR_TYPE_INFO, - "Processing /pay in phase %df: finalizing response with status %u\n", + "Processing /pay in phase %dg: finalizing response with status %u\n", (int) pc->phase, response_code); for (unsigned int i = 0; i<pc->parse_pay.num_exchanges; i++) @@ -1371,19 +1371,23 @@ batch_deposit_cb ( eg->bdh = NULL; pc->batch_deposits.pending_at_eg--; GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Processing /pay in phase %dc: batch deposit response received\n", + "Processing /pay in phase %dd: batch deposit response received\n", (int) pc->phase); GNUNET_assert (GNUNET_YES == pc->suspended); switch (dr->hr.http_status) { case MHD_HTTP_OK: + GNUNET_log ( + GNUNET_ERROR_TYPE_INFO, + "Processing /pay in phase %de: batch deposit response persisted\n", + (int) pc->phase); handle_batch_deposit_ok (eg, dr); if (GNUNET_YES != pc->suspended) return; /* handle_batch_deposit_ok already resumed with an error */ GNUNET_log ( GNUNET_ERROR_TYPE_INFO, - "Processing /pay in phase %dd: batch deposit response persisted\n", + "Processing /pay in phase %df: batch deposit response persisted\n", (int) pc->phase); do_batch_deposits (eg); return; @@ -1429,6 +1433,9 @@ batch_deposit_cb ( } return; default: + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Processing /pay in phase %dw: HTTP error %u\n", + (int) pc->phase); GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Deposit operation failed with HTTP code %u/%d\n", dr->hr.http_status, @@ -1502,8 +1509,12 @@ do_batch_deposits (struct ExchangeGroup *eg) struct PayContext *pc = eg->pc; struct TMH_HandlerContext *hc = pc->hc; unsigned int group_size = 0; + if (NULL != pc->response) { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Processing /pay in phase %dk: response during batch deposit\n", + (int) pc->phase); if (0 == pc->batch_deposits.pending_at_eg) resume_pay_with_response (pc, pc->response_code, @@ -1627,6 +1638,9 @@ do_batch_deposits (struct ExchangeGroup *eg) eg->bdh, TALER_EXCHANGE_post_batch_deposit_option_force_dc ())); } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Processing /pay in phase %dc: /batch-deposit request\n", + (int) pc->phase); TALER_EXCHANGE_post_batch_deposit_start (eg->bdh, &batch_deposit_cb, eg);