webhooks in development

55 views
Skip to first unread message

Scott K

unread,
May 11, 2023, 2:44:18 PM5/11/23
to Stripe API Discussion
I'd have guessed that the stripe cli would let me send post "requests" to my localhost endpoint so I could see if the endpoint was working Instead I find that the stripe cli is a listener for webhook events How is that supposed to work?

Remi J.

unread,
May 11, 2023, 2:53:22 PM5/11/23
to api-d...@lists.stripe.com
Hello,

One feature the Stripe CLI offers is the ability to receive Events for you and then forward those to your local server. Without the CLI, you can't configure a localhost endpoint as our servers wouldn't know where to forward the data. So what you do is use the stripe listen command [1] and the forward option [2] that lets you proxy the Event we would send to your webhook endpoint but through the CLI first.

Hope this helps! If you have a follow up question, I'd recommend chatting with our support team first here [3] or talking to other developers on our Discord server here [4].

Best,
Remi


On Thu, May 11, 2023 at 11:44 AM Scott K <skapl...@gmail.com> wrote:
I'd have guessed that the stripe cli would let me send post "requests" to my localhost endpoint so I could see if the endpoint was working Instead I find that the stripe cli is a listener for webhook events How is that supposed to work?

--
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
Reply all
Reply to author
Forward
0 new messages