merchant

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

commit 984e503b7af70ad6ff5c75025eadf045e0ebe155
parent 81efb35855ca4557c85f315a2633cb2b1dae4a0b
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Fri, 23 Jun 2017 00:54:04 +0200

error message

Diffstat:
Msrc/backend/taler-merchant-httpd_refund.c | 5+++--
Msrc/lib/merchant_api_pay.c | 3+++
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_refund.c b/src/backend/taler-merchant-httpd_refund.c @@ -246,8 +246,9 @@ MH_handler_refund_increase (struct TMH_RequestHandler *rh, */ return TMH_RESPONSE_reply_external_error (connection, TALER_EC_REFUND_INCONSISTENT_AMOUNT, - "Amount either lower than the previous" - " or too big to be paid back"); + "Amount incorrect: either not bigger" + " than the previous one or too big to" + " be paid back"); } if (GNUNET_SYSERR == res) diff --git a/src/lib/merchant_api_pay.c b/src/lib/merchant_api_pay.c @@ -249,6 +249,9 @@ handle_pay_finished (void *cls, /** * Pay a merchant. API for wallets that have the coin's private keys. + * _NOTE_: this function does NOT calculate each coin amount in order + * to match the contract total price. This calculation is to be made + * by the logic using this library. * * @param ctx the execution loop context * @param merchant_uri base URI of the merchant's backend