exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit e0759fb7577de23acd72086b6680f6f9b95e9ea1
parent 67feb2bf958446b5b6c1f65482a06b5d4374fb7a
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date:   Tue, 28 Jul 2026 22:59:53 +0200

new EC

Diffstat:
Msrc/include/taler/taler_error_codes.h | 8++++++++
Msrc/util/taler_error_codes.c | 10+++++++++-
2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/src/include/taler/taler_error_codes.h b/src/include/taler/taler_error_codes.h @@ -3194,6 +3194,14 @@ enum TALER_ErrorCode /** + * The order was already paid, but completing a different choice than the one given in this request. The request does not describe the payment that was made; the client should use the choice the order was actually paid with. + * Returned with an HTTP status code of #MHD_HTTP_CONFLICT (409). + * (A value of 0 indicates that the error is generated client-side). + */ + TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_MISMATCH = 2187, + + + /** * The contract hash does not match the given order ID. * Returned with an HTTP status code of #MHD_HTTP_BAD_REQUEST (400). * (A value of 0 indicates that the error is generated client-side). diff --git a/src/util/taler_error_codes.c b/src/util/taler_error_codes.c @@ -3082,6 +3082,14 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { }, { + /* 2187 */ + .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_CHOICE_INDEX_MISMATCH, + .hint = + "The order was already paid, but completing a different choice than the one given in this request. The client should use the choice the order was actually paid with.", + .http_code = MHD_HTTP_CONFLICT + }, + + { /* 2200 */ .ec = TALER_EC_MERCHANT_POST_ORDERS_ID_PAID_CONTRACT_HASH_MISMATCH, .hint = "The contract hash does not match the given order ID.", @@ -5762,7 +5770,7 @@ static const struct ErrorCodeAndHint code_hint_pairs[] = { /** * The length of @e code_hint_pairs. */ -static const unsigned int code_hint_pairs_length = 744; +static const unsigned int code_hint_pairs_length = 745; const char *