Nutlope / roomGPT

Upload a photo of your room to generate your dream room with AI.
https://www.roomgpt.io/
MIT License
9.87k stars 1.31k forks source link

Stripe-Webhook not returning event. #59

Closed CAPTAIN320 closed 1 year ago

CAPTAIN320 commented 1 year ago

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!

R3P-tech commented 1 year ago

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

CAPTAIN320 commented 1 year ago

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.

R3P-tech commented 1 year ago

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
CAPTAIN320 commented 1 year ago

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

R3P-tech commented 1 year ago

Working now, thanks !

Kellokes commented 1 year ago

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 1 year ago

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