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

后端 未结 9 1937
故里飘歌
故里飘歌 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 04:15

    It is possible to send the webhooks to your local host. Look up "ngrok", when you run that it opens up a port to public internet access and provides you with a url that can access your localhost from. take this url and set it as your webhook address and finish the url by pointing it at your webhook.php file.

    * EDIT *

    This is only appropriate for testing.

提交回复
热议问题