#yago99_error

1 messages ¡ Page 1 of 1 (latest)

verbal mantleBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1293610615994191923

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tranquil cape
#

Hello! The error you're getting usually indicates one of two things:

  1. You're using the wrong webhook secret; make sure you're using the one the CLI spits out when you run the stripe listen command.
  2. You're not passing the raw, unaltered, unparsed, unprocessed, untouched-in-any-way body from the HTTP request to the event construction function.
#

When using Node it can sometimes be quite difficult to get the raw, unaltered body due to middleware and other factors. There's no single solution, it depends on your specific situation, but there's a lot of information and different approaches to try in this thread: https://github.com/stripe/stripe-node/issues/341

warped sequoia
#

can i share you my index.js?

#

when i create the webhook on stripe, can i use my custom domain on replit?

tranquil cape
#

We can't do code reviews here, so I can't help you with your entire code file. We also can't tell you if a particular third-party service will or won't work.

#

We're happy to answer specific development and integration questions you have though!

warped sequoia
#

You're not passing the raw, unaltered, unparsed, unprocessed, untouched-in-any-way body from the HTTP request to the event construction function. this is the problem, how can i solve it