#abhishek gupta —webhook
1 messages · Page 1 of 1 (latest)
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...
this guys webhook worked but not mine
It is showing no error but it is not reaching Firebase.i am using stripe CLI
console.log(success: order ${session.id} had been added to db); this line never comes in the console.
the terminal shows
i am using stripe cli to connect to firbase with webhook
Not sure I understand
What's the question here? Are you running into errors?
no there are no errors but the code is not working
the payment is not being recieved in firebase
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?
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
👋
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?
HOW CAN i do it cause the admin also told the problem but not how to fix
i am not using firebase functions
Then how are you running a local server?
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.