Testing Stripe Webhooks with Localhost

Stripe allows you to test your webhooks, but if you are running a local development environment such as UwAmp then it is difficult to integrate.

The solution is to use Putty to create a reverse tunnel to publish the local dev enviornment through your webserver.

On NGinx on the VPS server you need to allow the remote port forwarding; edit /etc/ssh/sshd_config and add an entry

GatewayPorts yes

Then restart the ssh daemon

sudo restart ssh

Next in Putty select Connection | SSH | Tunnels and enter the following:

Source port the port on the VPS to listen to
Destination localhost:80
Choose Remove and select Add

Open the Putty Connection.

Now when connecting to the remove port specified this will be delivered via the local tunnel  to the development environment.

Add a Comment

Your email address will not be published. Required fields are marked *