Is it possible to set localhost as a Stripe webhook URL?

后端 未结 9 2043
故里飘歌
故里飘歌 2021-02-12 03:36

I am creating a payment gateway using Stripe.

I want to set my localhost url localhost/stripe/webhook.php as my webhook url. Is it possible to set a localho

9条回答
  •  长情又很酷
    2021-02-12 03:55

    There's now another option: you can now use the Stripe CLI to seamlessly test webhooks locally without the need for a 3rd party tool.

    In this case you would just do something like this to plumb your Stripe events through to your local webhook handler code:

    stripe listen --forward-to localhost/stripe/webhook.php
    

提交回复
热议问题