diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-24 03:15:16 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-24 03:15:16 -0400 |
commit | 974b2b2c3077c929850c1598af1e1e124f530a7f (patch) | |
tree | b7aca47e38a5cb0e097fdf4726620eaaa0e83f5d /src/backend/taler-merchant-httpd.c | |
parent | dc4125387b31155a9a5d9622bb22d5b55da2f2fd (diff) | |
download | merchant-974b2b2c3077c929850c1598af1e1e124f530a7f.tar.gz merchant-974b2b2c3077c929850c1598af1e1e124f530a7f.tar.bz2 merchant-974b2b2c3077c929850c1598af1e1e124f530a7f.zip |
implement & test POST /paid
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index 26c6bb91..b6cb1cc4 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -1048,6 +1048,17 @@ url_handler (void *cls, to set a conservative bound for sane wallets */ .max_upload = 1024 * 1024 }, + /* POST /orders/$ID/paid: */ + { + .url_prefix = "/orders/", + .have_id_segment = true, + .url_suffix = "paid", + .method = MHD_HTTP_METHOD_POST, + .handler = &TMH_post_orders_ID_paid, + /* the body should be pretty small, allow 1 MB of upload + to set a conservative bound for sane wallets */ + .max_upload = 1024 * 1024 + }, /* GET /orders/$ID: */ { .url_prefix = "/orders/", |