merchant

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

commit c32bc2f5ec9a64922a6da52df8e4c0ce3842bb5c
parent e62e75939f6f3f9c048a0f8c88e82e5f2cd62874
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 16 Apr 2023 15:17:15 +0200

log more diagnostics

Diffstat:
Msrc/backend/taler-merchant-wirewatch.c | 11+++++++++++
Msrc/testing/test_merchant_wirewatch.sh | 6+++---
2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/backend/taler-merchant-wirewatch.c b/src/backend/taler-merchant-wirewatch.c @@ -266,6 +266,10 @@ credit_cb ( char *exchange_url; struct TALER_WireTransferIdentifierRawP wtid; + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Received wire transfer `%s' over %s\n", + details->wire_subject, + TALER_amount2s (&details->amount)); found = true; if (GNUNET_OK != parse_subject (details->wire_subject, @@ -286,6 +290,13 @@ credit_cb ( &details->amount, details->credit_account_uri, true /* confirmed */); + if (0 == qs) + { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Inserting transfer for %s into database failed. Is the credit account %s configured correctly?\n", + instance_id, + details->credit_account_uri); + } GNUNET_free (exchange_url); if (qs < 0) { diff --git a/src/testing/test_merchant_wirewatch.sh b/src/testing/test_merchant_wirewatch.sh @@ -117,9 +117,9 @@ FACADE_URL=$(libeufin-cli facades list | jq .facades[0].baseUrl | tr -d \") echo -n "Setting FACADE URL in configuration..." taler-config -c "$CONF" \ - -s "taler-merchant-wirewatch" \ - -o "WIRE_GATEWAY_URL" \ - -V "${FACADE_URL}" + -s "taler-merchant-wirewatch" \ + -o "WIRE_GATEWAY_URL" \ + -V "${FACADE_URL}" echo " OK" echo -n "First prepare wallet with coins..."