diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-pay.h')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.h | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.h b/src/backend/taler-merchant-httpd_post-orders-ID-pay.h index 726a27be..7cce41f8 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.h +++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.h @@ -1,6 +1,6 @@ /* This file is part of TALER - (C) 2014-2017 GNUnet e.V. + (C) 2014-2020 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -14,12 +14,13 @@ TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ /** - * @file backend/taler-merchant-httpd_pay.h - * @brief headers for /pay handler + * @file backend/taler-merchant-httpd_post-orders-ID-pay.h + * @brief headers for POST /orders/$ID/pay handler * @author Marcello Stanisci + * @author Christian Grothoff */ -#ifndef TALER_EXCHANGE_HTTPD_PAY_H -#define TALER_EXCHANGE_HTTPD_PAY_H +#ifndef TALER_EXCHANGE_HTTPD_POST_ORDERS_ID_PAY_H +#define TALER_EXCHANGE_HTTPD_POST_ORDERS_ID_PAY_H #include <microhttpd.h> #include "taler-merchant-httpd.h" @@ -33,22 +34,16 @@ MH_force_pc_resume (void); /** - * Manage a payment + * Process payment for an order. * * @param rh context of the handler * @param connection the MHD connection to handle - * @param[in,out] connection_cls the connection's closure (can be updated) - * @param upload_data upload data - * @param[in,out] upload_data_size number of bytes (left) in @a upload_data - * @param mi merchant backend instance, never NULL + * @param[in,out] hc context with further information about the request * @return MHD result code */ MHD_RESULT -MH_handler_pay (struct TMH_RequestHandler *rh, - struct MHD_Connection *connection, - void **connection_cls, - const char *upload_data, - size_t *upload_data_size, - struct MerchantInstance *mi); +TMH_post_orders_ID_pay (const struct TMH_RequestHandler *rh, + struct MHD_Connection *connection, + struct TMH_HandlerContext *hc); #endif |