Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Anotheruser's avatar

Cashier / Stripe webhook testing locally in homestead box

Hi

I have created a webhook as detailed in the cashier docs: http://laravel.com/docs/4.2/billing#handling-failed-payments

and I have added a webhook URL within my stripe.com account settings.

When I run a test webhook within stripe.com it always returns a 503 error. As it obviously cant find the URL defined ( as being used locally - my-domain-name.dev ) .

Do i have to upload the dev site to a live server to test the webhooks or is there an easier way?

Thanks.

0 likes
6 replies
Anotheruser's avatar

@KMountford Thanks. I have actually implemented a similar solution myself using port forwarding. It turns out that using my ip in combination with the port forwarding on my router was enough to get it to work. I just use ip in place of my-domain-name.dev on stripe.com or as I have set up a subdomain on my hosting account for one of my domain names I am using that to reroute to my ip and is much easier to remember :)

1 like
KMountford's avatar

Hmm, clever! I'm not lucky enough to have an ISP that gives me a static IP unfortunately but can see how that'd work well. Glad you got it working.

bashy's avatar

@appnorth Was it you who I helped with that? Remember your username from a thread about that.

@KMountford Don't need a static IP, use a service that updates the A record for you :) something like noip.com

Anotheruser's avatar

@bashy I have posted about it in the past when I was setting it up. It took a bit of setting up but great now it works.

Please or to participate in this conversation.