#Jerry Jose
1 messages · Page 1 of 1 (latest)
Hey! Sure, you'd use the CLI to listen for events from your account and forward them to your webhook endpoint in your dev environment: https://stripe.com/docs/cli/listen
for this do we need to configure webhook endpoint in Stripe dashboard?
Nope, the CLI acts as a proxy in that regard. You tell it which events to listen for (checkout.session.completed I guess) and use the --forward-to arg to send it to your local dev server
So the events(create payment) are need to be do in CLI, then the CLI forward it to webhook endpoint, am I correct?
No, you don't need to trigger the events via the CLI
You can create and complete a Checkout Session via your normal integration and the CLI will receive and forward those events
(assuming its authenticated on the same account)
Great Thank you