Nutlope/roomGPT

Stripe-Webhook not returning event.

CAPTAIN320 opened this issue · 7 comments

Stripe setup successfully listens to the POST and registers event types.
However, the app itself does not detect those events.
Therefore, credits cannot be updated.
Please Help!

Hey, I have the same issue. How did you solved that?

Hey, I have the same issue. How did you solved that?

I you have already setup the api keys, all you need to do is go to stripe dashboard > developers > test mode.
Then add http://localhost:3000/stripe-webhook as the webhook url.

I'm using vercel, with custom domain.
If i use:
https://mydomain.com/stripe-webhook
i get a 308 error
Capture d’écran 2023-04-23 à 22 43 11

If i use:
https://www.mydomain.com/stripe-webhook
i get a 404 error
Capture d’écran 2023-04-23 à 22 41 14

I'm using vercel, with custom domain. If i use: https://mydomain.com/stripe-webhook i get a 308 error

If i use: https://www.mydomain.com/stripe-webhook i get a 404 error

You need to add the full path of the stripe-webhook in your project. This means adding "api/"
In this case use the url:
https://{your domain}/api/stripe-webhook

Working now, thanks !

Hi Guys,

Here I received an error with this message:

Webhook Error: No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe?
Learn more about webhook signing and explore webhook integration examples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing

Does anyone know what could be going on?

chakya commented

@Kellokes have you made sure that the API key used is correct?