#daniromo
1 messages · Page 1 of 1 (latest)
This guide shows how to verify webhook signatures, the crypto API doesn't really affect how to do it https://stripe.com/docs/webhooks/quickstart
Are you running in to errors when trying to verify the webhook or are you having trouble before the code is even running?
I read the steps to manually verify the signature stated here https://stripe.com/docs/webhooks/signatures but I just don't really understand how to do it.
I should probably stick to using the built in function from stripe-node but it doesn't quite work in deno
Yeah using the built in function would be way easier. How does it not quite work in deno?
I'm trying to deploy to a serverless function and the deployment fails while resolving the imports from the node stripe library
I guess they're just not compatible
I'll build a service just to handle stripe things in node if I can't figure out the manual webhook verification tho. Thanks for your time.
If it helps, you can look at the source code for our node library to see how they do it. I once more or less copied the C# implimentation we had when building my own. My js is a bit rusty but I think this is where we start verifying in our node code https://github.com/stripe/stripe-node/blob/13e955ed/lib/Webhooks.js#L101