diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-09-10 16:07:27 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-09-10 16:07:27 +0200 |
commit | ce2c47390bfe0b9f0246b6b242539fc2ded2170b (patch) | |
tree | 4c7f093e8195b512d7a45d5f51631a2388ab4e7c /src | |
parent | db82ec6d25642f3b68ff0f666cff5c53a4ef0068 (diff) |
have libtalermerchant accept 451 on order creation
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/merchant_api_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/merchant_api_common.c b/src/lib/merchant_api_common.c index d4f1c9c0..72d2d3e8 100644 --- 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 */ |