merchant

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

commit ce2c47390bfe0b9f0246b6b242539fc2ded2170b
parent db82ec6d25642f3b68ff0f666cff5c53a4ef0068
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 10 Sep 2024 16:07:27 +0200

have libtalermerchant accept 451 on order creation

Diffstat:
Msrc/lib/merchant_api_common.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/lib/merchant_api_common.c b/src/lib/merchant_api_common.c @@ -464,6 +464,11 @@ TALER_MERCHANT_handle_order_creation_response_ ( } break; } + case MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS: + /* Order total too high for legal reasons */ + por.hr.ec = TALER_JSON_get_error_code (json); + por.hr.hint = TALER_JSON_get_error_hint (json); + break; case MHD_HTTP_INTERNAL_SERVER_ERROR: /* Server had an internal issue; we should retry, but this API leaves this to the application */