nicopN
BuildShip16mo ago
3 replies
nicop

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?
GitHub
Node.js library for the Stripe API. . Contribute to stripe/stripe-node development by creating an account on GitHub.
GitHub - stripe/stripe-node: Node.js library for the Stripe API.
Was this page helpful?