summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_proposal.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-03-11 17:55:22 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-03-11 17:55:22 +0100
commit09a73e13a6c163d0de9594e20f34b73f6d170524 (patch)
tree2949593c542dc770a643cde27bf1fa42b1ab9694 /src/backend/taler-merchant-httpd_proposal.c
parent8e515cfa7f4c22b7c2d711001108e30e396e3b93 (diff)
downloadmerchant-09a73e13a6c163d0de9594e20f34b73f6d170524.tar.gz
merchant-09a73e13a6c163d0de9594e20f34b73f6d170524.tar.bz2
merchant-09a73e13a6c163d0de9594e20f34b73f6d170524.zip
do more order validation (fixes #5290)
Diffstat (limited to 'src/backend/taler-merchant-httpd_proposal.c')
-rw-r--r--src/backend/taler-merchant-httpd_proposal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_proposal.c b/src/backend/taler-merchant-httpd_proposal.c
index 1dffaf50..60f8941d 100644
--- a/src/backend/taler-merchant-httpd_proposal.c
+++ b/src/backend/taler-merchant-httpd_proposal.c
@@ -137,6 +137,8 @@ proposal_put (struct MHD_Connection *connection,
struct MerchantInstance *mi;
struct TALER_Amount total;
const char *order_id;
+ const char *summary;
+ const char *fulfillment_url;
json_t *products;
json_t *merchant;
struct GNUNET_TIME_Absolute timestamp;
@@ -145,6 +147,8 @@ 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_string ("fulfillment_url", &fulfillment_url),
/**
* The following entries we don't actually need,
* except to check that the order is well-formed */