summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-28 10:08:11 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-28 10:08:11 +0100
commit2f314ee5d895ef60c9452f66b3a1f8679021851e (patch)
treee6ee358d0ceb2b189e6ef938098c7a8fbc3973aa
parent4ae970e988682ed16a2bd7ffaf893dbd73a7e0ca (diff)
downloadmerchant-2f314ee5d895ef60c9452f66b3a1f8679021851e.tar.gz
merchant-2f314ee5d895ef60c9452f66b3a1f8679021851e.tar.bz2
merchant-2f314ee5d895ef60c9452f66b3a1f8679021851e.zip
allow summary to be itself an object for i18n
-rw-r--r--src/backend/taler-merchant-httpd_order.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_order.c b/src/backend/taler-merchant-httpd_order.c
index 0c4e5c82..c873be9b 100644
--- a/src/backend/taler-merchant-httpd_order.c
+++ b/src/backend/taler-merchant-httpd_order.c
@@ -195,7 +195,7 @@ proposal_put (struct MHD_Connection *connection,
int res;
struct TALER_Amount total;
const char *order_id;
- const char *summary;
+ json_t *summary;
const char *fulfillment_url;
json_t *products;
json_t *merchant;
@@ -206,7 +206,7 @@ proposal_put (struct MHD_Connection *connection,
struct GNUNET_JSON_Specification spec[] = {
TALER_JSON_spec_amount ("amount", &total),
GNUNET_JSON_spec_string ("order_id", &order_id),
- GNUNET_JSON_spec_string ("summary", &summary),
+ GNUNET_JSON_spec_json ("summary", &summary),
GNUNET_JSON_spec_string ("fulfillment_url",
&fulfillment_url),
/**