#MarkoBoras

1 messages · Page 1 of 1 (latest)

ivory hawkBOT
urban solstice
#

We've no idea how Firebase emulators works I'm afraid. Are you encountering a specific issue/error?

red grove
#

hmm

#

Everything normally works correctly

#

I want to host app locally and my machine will be server where I'll create endpoints which webhooks will trigger

#

this is error

urban solstice
#

Generally you'd just use the Stripe CLI to forward events to your local development webhook

#

Creating a localhost endpoint like that via the Dashboard won't work

red grove
#

I don't want manually to forward events. I want to emulate real flow of app.

#

I don't uderstand part "Stripe CLI to forward events to your local development webhook"

#

I've tried it

urban solstice
#

What particular part are you struggling with?

red grove
#

can I do this

#

with this

stripe listen --events payment_intent.created,customer.created,payment_intent.succeeded,charge.succeeded,checkout.session.completed,charge.failed
--forward-to localhost:4242/webhook

I listen on webhook events

#

and then I can trigger events through my app to that endpoint?

urban solstice
#

Yep, that will forward any of those events listed that occur on your account to that endpoint

red grove
#

let me check one more time today

#

I can't find solution with firebase function emulators

#

nevermind

#

thanks

urban solstice
#

What is the issue exactly?

#

Is there an error? Is the event being forward to your localhost:4242/webhook endpoint?

red grove
#

I don't know why I can't even in my functions emulators fetch products

urban solstice
#

Not sure I understand what you mean. Are the emulators running on that :4242 port?