diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_order.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_order.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_order.c b/src/backend/taler-merchant-httpd_order.c index a35b2cef..892dfce7 100644 --- a/src/backend/taler-merchant-httpd_order.c +++ b/src/backend/taler-merchant-httpd_order.c @@ -463,7 +463,6 @@ proposal_put (struct MHD_Connection *connection, { return MHD_YES; } - /* other internal errors might have occurred */ if (GNUNET_SYSERR == res) { @@ -473,6 +472,17 @@ proposal_put (struct MHD_Connection *connection, TALER_EC_PROPOSAL_ORDER_PARSE_ERROR, "Impossible to parse the order"); } + if (0 != + strcasecmp (total.currency, + TMH_currency)) + { + GNUNET_break_op (0); + return TALER_MHD_reply_with_error + (connection, + MHD_HTTP_BAD_REQUEST, + TALER_EC_PROPOSAL_ORDER_BAD_CURRENCY, + "Total amount must be in currency supported by backend"); + } if (wire_transfer_deadline.abs_value_us < refund_deadline.abs_value_us) |