merchant

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

commit cdb3274dad03f6362e1e20a510bac950eef1628d
parent a08a12d3c583183589306e7913d2f99a3ad26e54
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  8 Dec 2020 18:53:17 +0100

fix minor merchant issues

Diffstat:
Msrc/backend/taler-merchant-httpd_post-orders-ID-pay.c | 2+-
Msrc/lib/merchant_api_tip_pickup2.c | 6++++++
Msrc/merchant-tools/taler-merchant-setup-reserve.c | 2+-
3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -828,7 +828,7 @@ process_pay_with_exchange (void *cls, pc, MHD_HTTP_FAILED_DEPENDENCY, TALER_MHD_make_json_pack ( - "{s:s, s:I, s:o, s:o}", + "{s:s, s:I, s:o, s:o?}", "hint", TALER_ErrorCode_get_hint ( TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DENOMINATION_KEY_NOT_FOUND), diff --git a/src/lib/merchant_api_tip_pickup2.c b/src/lib/merchant_api_tip_pickup2.c @@ -316,6 +316,7 @@ TALER_MERCHANT_tip_pickup2 (struct GNUNET_CURL_Context *ctx, { GNUNET_break (0); json_decref (tp_obj); + GNUNET_free (tpo->url); GNUNET_free (tpo); return NULL; } @@ -333,6 +334,11 @@ TALER_MERCHANT_tip_pickup2 (struct GNUNET_CURL_Context *ctx, tpo->post_ctx.headers, &handle_tip_pickup_finished, tpo); + if (NULL == tpo->job) + { + TALER_MERCHANT_tip_pickup2_cancel (tpo); + return NULL; + } return tpo; } diff --git a/src/merchant-tools/taler-merchant-setup-reserve.c b/src/merchant-tools/taler-merchant-setup-reserve.c @@ -208,7 +208,7 @@ run (void *cls, auth_header)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Failed so sett %s header, trying without\n", + "Failed so set %s header, trying without\n", MHD_HTTP_HEADER_AUTHORIZATION); } GNUNET_free (auth_header);