From 974b2b2c3077c929850c1598af1e1e124f530a7f Mon Sep 17 00:00:00 2001 From: Jonathan Buchanan Date: Fri, 24 Jul 2020 03:15:16 -0400 Subject: implement & test POST /paid --- src/backend/taler-merchant-httpd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/backend/taler-merchant-httpd.c') 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/", -- cgit v1.2.3