summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-get-orders-ID.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-24 09:12:52 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-24 09:12:52 +0200
commitfb23045fe1d062cd4f26f3265ac94ded47660abd (patch)
treeb2c4f905f989aaca17830d18a1f7616753800993 /src/backend/taler-merchant-httpd_private-get-orders-ID.c
parentf9fc9f73df9eb5544882815abe0afe8d789a4ef6 (diff)
downloadmerchant-fb23045fe1d062cd4f26f3265ac94ded47660abd.tar.gz
merchant-fb23045fe1d062cd4f26f3265ac94ded47660abd.tar.bz2
merchant-fb23045fe1d062cd4f26f3265ac94ded47660abd.zip
implement #6939 transformation
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-orders-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders-ID.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders-ID.c b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
index bf5e2f65..ed162826 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders-ID.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders-ID.c
@@ -911,6 +911,7 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh,
{
struct GNUNET_JSON_Specification spec[] = {
TALER_JSON_spec_amount ("amount",
+ TMH_currency,
&gorc->contract_amount),
GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_string ("fulfillment_url",
@@ -934,19 +935,6 @@ TMH_private_get_orders_ID (const struct TMH_RequestHandler *rh,
TALER_EC_MERCHANT_GENERIC_DB_CONTRACT_CONTENT_INVALID,
hc->infix);
}
- if (0 !=
- strcasecmp (TMH_currency,
- gorc->contract_amount.currency))
- {
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "Currency `%s' of contract does not match our configuration!\n",
- gorc->contract_amount.currency);
- return TALER_MHD_reply_with_error (
- connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_MERCHANT_GENERIC_DB_CONTRACT_CONTENT_INVALID,
- gorc->contract_amount.currency);
- }
}
if (! order_only)
{