Rich AR
Convex Community11mo ago
6 replies
Rich A

Advice on Webhooks and Polar

I need some advice. Polar claims to use the Standard Webhooks approach for validating webhook signatures as described here @https://docs.polar.sh/integrate/webhooks/delivery . However, I cannot find any good example or guidance on how to do this within Convex's standard http.ts file for managing http routes and responding to webhooks after the signature has been validated. In my http.ts has Clerk using svix, which is pretty straghtforward and works for both test and production environments. But how would I do this for Polar (or any other party that may send webhooks to my app using the Standard Webhooks approach as described in @https://www.standardwebhooks.com/ ? Does anyone have any good examples of this working? FYI, I have tried to use the https://www.convex.dev/components/polar but I had issues getting that to work as well. I would feel more confident if I knew that I could interact wth Polar directly and securely. Once I have that, I will take a another run at the Convex Polar Component I've tried lots of different things and looked for answers, so any steer would be appreciated.
Polar
How to parse, validate and handle webhooks and monitor their deliveries on Polar
Handle & monitor webhook deliveries - Polar
Convex
Add subscriptions and billing to your Convex app with Polar.
Polar
Was this page helpful?