From 3645e148dd673d0f5b72226a9d9a6310cbe21be0 Mon Sep 17 00:00:00 2001 From: priscilla Date: Tue, 31 Jan 2023 09:06:20 -0500 Subject: backend pending webhook --- src/backend/taler-merchant-httpd_helper.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/backend/taler-merchant-httpd_helper.c') diff --git a/src/backend/taler-merchant-httpd_helper.c b/src/backend/taler-merchant-httpd_helper.c index 2cffa20c..b875f6f3 100644 --- a/src/backend/taler-merchant-httpd_helper.c +++ b/src/backend/taler-merchant-httpd_helper.c @@ -20,11 +20,12 @@ */ #include "platform.h" #include +#include #include #include #include "taler-merchant-httpd_helper.h" #include - +#include /** * check @a payto_uris for well-formedness @@ -587,6 +588,19 @@ trigger_webhook_cb (void *cls, http_method, header, body); + if (t->rv > 0) + { + struct GNUNET_DB_EventHeaderP es = { + .size = htons (sizeof(es)), + .type = htons (TALER_DBEVENT_MERCHANT_WEBHOOK_PENDING) + }; + const void *extra = NULL; + size_t extra_size = 0; + TMH_db->event_notify (TMH_db->cls, + &es, + &extra, + extra_size); + } free (header); free (body); } -- cgit v1.2.3