#abhishek gupta —webhook

1 messages · Page 1 of 1 (latest)

reef slate
#

Let's chat here

grizzled lotus
#

Too difficult? 👉 Watch my REACT BASICS 101 class for FREE with 1 month FREE Skillshare access (First 1000 people): https://skl.sh/2Srfwuf

🚨 Join the world’s BEST developer community “Zero to Full Stack Hero” NOW: https://www.papareact.com/course

Join me on Day 4 of 5 of the 5-DAY AMAZON CHALLENGE where we build the following:

👉 Payment Proce...

▶ Play video
#

this guys webhook worked but not mine

#

i am using stripe cli to connect to firbase with webhook

reef slate
#

Not sure I understand
What's the question here? Are you running into errors?

grizzled lotus
#

no there are no errors but the code is not working

#

the payment is not being recieved in firebase

reef slate
#

I'm not sure thats enough information to go on with
Can you try adding some logging to your code to see if it shows anything?

grizzled lotus
#

the code is in the stackoverflow question

#

this is the terminal

#

i coppied the webhook part from the vedio above

#

if you could see it and please help

cinder path
#

👋

#

The issue here is with your Firebase implementation

#

Your endpoint in Firebase is not getting hit

#

I'm not a Firebase expert so I likely won't be able to help that much with that.... but just to make sure... are you running your Firebase functions on an emulator on the same endpoint that you are forwarding to?

grizzled lotus
#

HOW CAN i do it cause the admin also told the problem but not how to fix

#

i am not using firebase functions

cinder path
#

Then how are you running a local server?

grizzled lotus
#

through stripe terminal

#

i send the request

cinder path
#

Yes but you have to be forwarding to a local server

#

Like localhost is a server running on your machine

#

That can receive the event and respond to it.

#

As far as I know, with Firebase, you have to be using Firebase functions to be able to receive HTTP requests

#

Which is what is going on here.

grizzled lotus
#

But in the vedio he did not use it

#

Just tell me that and thanks very much

cinder path
#

I can't watch a 2 hour video and I'm not an expert on Firebase

#

For our Webhooks to function, they have to hit a hosted endpoint

#

That endpoint can be hosted locally if events are forwarded from the CLI