merchant

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

commit 2a87fd92078b006a3707c2217a2898f86da95e0b
parent d08f3bc98e5e03bdb2ffca9a8a6dcc3788178f85
Author: Florian Dold <florian.dold@gmail.com>
Date:   Fri, 19 Jan 2018 03:03:03 +0100

use 409 instead of 503 in lib (and test)

Diffstat:
Msrc/lib/merchant_api_tip_pickup.c | 2+-
Msrc/lib/test_merchant_api.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/merchant_api_tip_pickup.c b/src/lib/merchant_api_tip_pickup.c @@ -176,7 +176,7 @@ handle_tip_pickup_finished (void *cls, /* Server had an internal issue; we should retry, but this API leaves this to the application */ break; - case MHD_HTTP_SERVICE_UNAVAILABLE: + case MHD_HTTP_CONFLICT: /* legal, can happen if we pickup a tip twice... */ break; case MHD_HTTP_NOT_FOUND: diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c @@ -4359,7 +4359,7 @@ run (void *cls) .details.tip_authorize.expected_ec = TALER_EC_TIP_AUTHORIZE_INSTANCE_DOES_NOT_TIP }, { .oc = OC_TIP_PICKUP, .label = "pickup-tip-3-too-much", - .expected_response_code = MHD_HTTP_SERVICE_UNAVAILABLE, + .expected_response_code = MHD_HTTP_CONFLICT, .details.tip_pickup.expected_ec = TALER_EC_TIP_PICKUP_NO_FUNDS, .details.tip_pickup.authorize_ref = "authorize-tip-1", .details.tip_pickup.amounts = pickup_amounts_1 },