# How to locally develop a payment webhook?

Payment gateways often provide the ability to pass webhooks. Webhooks are amazing for real life updates of the customer payment, therefore h0stware also integrates those.

However when you are developing a module on your local computer, you cant work with a webhook url because `localhost` would not be reachable.\
You can easily pass a .env variable called HOSTWARE\_WEBHOOK\_URL which will be used instead of the current sales channel domain for the webhook.

### ngrok

You could expose your local h0stware instance using the tool ngrok and then set the ngrok forwarding url into the .env variable.

Please remember that the variable will only be used in local environments and will be ignored in production.
