merchant

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

commit 93b7f0022fdb0f8fc62f2ef977e01a87973d5376
parent d579354cf5ef1a0d71669f41e29e8c42488f90eb
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date:   Wed, 23 Jul 2025 07:53:55 +0200

some cleanup

Diffstat:
Msrc/backend/taler-merchant-httpd_post-orders-ID-pay.c | 7+------
1 file changed, 1 insertion(+), 6 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 @@ -3203,7 +3203,6 @@ handle_output_donation_receipt ( pc->parse_wallet_data.num_bkps, pc->parse_wallet_data.donau. donation_year); - if (NULL == wallet_amount) { GNUNET_break_op (0); @@ -3215,7 +3214,6 @@ handle_output_donation_receipt ( return GNUNET_NO; } - /* currency must match */ if (GNUNET_OK != TALER_amount_cmp_currency (wallet_amount, &output->details.donation_receipt.amount)) @@ -3230,7 +3228,6 @@ handle_output_donation_receipt ( return GNUNET_NO; } - /* value must match */ if (0 != TALER_amount_cmp (wallet_amount, &output->details.donation_receipt.amount)) { @@ -3239,12 +3236,10 @@ handle_output_donation_receipt ( TALER_MHD_reply_with_error ( pc->connection, MHD_HTTP_CONFLICT, - /*FIXME : CHANGE TO PROPER ONE */ - TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_TOKEN_COUNT_MISMATCH, + TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_DONATION_AMOUNT_MISMATCH, "donation amount mismatch")); return GNUNET_NO; } - return GNUNET_OK; #endif /* HAVE_DONAU_DONAU_SERVICE_H */ }