exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 5f616ec6884aa8ba132d4c997f9d6cf76a98c38b
parent 757c9088b9c0036fde44bab8c41fac1bce86206e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 12 Nov 2023 10:23:18 +0100

-add kyc-webhook endpoint

Diffstat:
Msrc/exchange/taler-exchange-httpd.c | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c @@ -46,6 +46,7 @@ #include "taler-exchange-httpd_kyc-check.h" #include "taler-exchange-httpd_kyc-proof.h" #include "taler-exchange-httpd_kyc-wallet.h" +#include "taler-exchange-httpd_kyc-webhook.h" #include "taler-exchange-httpd_link.h" #include "taler-exchange-httpd_management.h" #include "taler-exchange-httpd_melt.h" @@ -1723,6 +1724,20 @@ handle_mhd_request (void *cls, .handler.post = &TEH_handler_kyc_wallet, .nargs = 0 }, + { + .url = "kyc-webhook", + .method = MHD_HTTP_METHOD_GET, + .handler.get = &TEH_handler_kyc_webhook_get, + .nargs = UINT_MAX, + .nargs_is_upper_bound = true + }, + { + .url = "kyc-webhook", + .method = MHD_HTTP_METHOD_POST, + .handler.post = &TEH_handler_kyc_webhook_post, + .nargs = UINT_MAX, + .nargs_is_upper_bound = true + }, /* POST management endpoints */ { .url = "management",