diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-11-25 16:05:05 +0900 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-11-25 16:05:05 +0900 |
commit | 7782a680228b6e76ae2598cacfc65ff250e8e020 (patch) | |
tree | 8a1e4e462808077b49cee038fed6b634d9176313 /src/backend/taler-merchant-httpd_post-orders-ID-pay.c | |
parent | 6fa958a3cec156bc0eb89ddfae8b150d7400d2be (diff) | |
download | merchant-7782a680228b6e76ae2598cacfc65ff250e8e020.tar.gz merchant-7782a680228b6e76ae2598cacfc65ff250e8e020.tar.bz2 merchant-7782a680228b6e76ae2598cacfc65ff250e8e020.zip |
-update to new spec parsers for better error checking
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-pay.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c index 9edc553c..c942847f 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -2306,7 +2306,7 @@ parse_pay (struct PayContext *pc) &dc->cdd.h_denom_pub), TALER_JSON_spec_amount_any ("contribution", &dc->cdd.amount), - GNUNET_JSON_spec_string ("exchange_url", + TALER_JSON_spec_web_url ("exchange_url", &exchange_url), /* if a minimum age was required, the minimum_age_sig and * age_commitment must be provided */ @@ -2658,6 +2658,7 @@ check_contract (struct PayContext *pc) TALER_JSON_spec_amount_any ("amount", &pc->amount), GNUNET_JSON_spec_mark_optional ( + /* This one does not have to be a Web URL */ GNUNET_JSON_spec_string ("fulfillment_url", &fulfillment_url), NULL), |