c# - How to solve "The WebHook verification request must contain a 'code' query parameter." in an ASP.NET WebHook receiver? -
i'm implemeting paddle webhooks in asp.net application. i've tried running sample webhook request https://requestb.in/ , worked (receiver returned 200). here's screenshot:
now, tried using this tutorial create webhooks receiver in asp.net application code:
public class paddlewebhookhandler : webhookhandler { public paddlewebhookhandler() { receiver = "genericjson"; } public override task executeasync(string receiver, webhookhandlercontext context) { return task.fromresult(true); } } the paddle webhooks sender throws 400 bad request error message:
the webhook verification request must contain 'code' query parameter.
do know what's problem? missing?
the problem in webhookreceiver. await ensurevalidcode(request, id); required "code" parameter passed in strange reason.
removing line enough problem go away.
Comments
Post a Comment