merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 03ce25438c251820ff556c66f11b22659f7a896f
parent 8746dc804009b7312ac0077eef869024c453be5e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 23 Jan 2023 14:22:43 +0100

webhook sketch

Diffstat:
Msrc/backend/taler-merchant-webhook.c | 24++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-webhook.c b/src/backend/taler-merchant-webhook.c @@ -117,8 +117,28 @@ handle_webhook_response (void *cls) } -void -cb () +/** + * Typically called by `lookup_pending_webhooks`. + * + * @param cls a `json_t *` JSON array to build + * @param webhook_serial reference to the configured webhook template. + * @param next_attempt is the time we should make the next request to the webhook. + * @param retries how often have we tried this request to the webhook. + * @param url to make request to + * @param http_method use for the webhook + * @param header of the webhook + * @param body of the webhook + */ +static void +cb (void *cls, + uint64_t webhook_serial, + struct GNUNET_TIME_Absolute + next_attempt, + uint32_t retries, + const char *url, + const char *http_method, + const char *header, + const char *body) { CURL *eh;