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

后端 未结 9 1894
故里飘歌
故里飘歌 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:11

    How to use ngrok and set up Stripe Webhooks url

    Source Link

    1. First Download ngrok and extract it on your computer
    2. Double click ngrok.exe
    3. Try typing ngrok.exe http 80 at this terminal prompt to expose port 80

    4. For example if we you have Stripe webhooks url on localhost like so http://localhost/stripeproject/webhook.php

    5. Just specify your ngrok url as the endpoint with your webhooks service and you’re almost done.

    6. You can set up this url http://f253021b.ngrok.io/stripeproject/webhook.php to send test webhooks to your integration’s endpoint within your account’s webhooks settings.

    It's working fine for me.

    More details click here

提交回复
热议问题