nicop
BBuildShip
•Created by nicop on 9/21/2024 in #❓・buildship-help
Stripe Webhook Signature
I am sending stripe webhooks to a buildship workflow that will update my DB with webhook events. The code continually fails with an error as follows:
Error: Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the raw request body.Payload was provided as a parsed JavaScript object instead. Signature verification is impossible without access to the original signed material. Learn more about webhook signing and explore webhook integration examples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing
No matter what changes I make to my code to try and send it as raw body, I cannot get it to work in BS. Can anyone look at my code and let me know if there is anything glaringly obvious, or if it simply cannot be done?
4 replies