I am implementing instamojo payment method into my website. Can I use a localhost URL as Webhook URL in order to test the process?
['https://Stackoverflow.com/questions/30707256', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4290253/']
I'm from Instamojo.

You can't use a local URL. This is because a webhook request is a POST request that is made from our server. Therefore, the only URLs that we can make these requests to would be URLs that are publicly available.

For testing purposes, I would recommend using [RequestBin](https://requestbin.com/). You can create a new bin and paste the URL for that bin in the webhook URL field of your Instamojo link. This will give you a link that is accessible by our server and you can inspect the POST requests to this link by appending `?inspect` at the end of the URL.
It is possible to forward Instamojo's webhooks to your local machine using tools like `localtunnel`. 

* `npm` is required to install localtunnel. [[How to install node and npm]](https://docs.npmjs.com/getting-started/installing-node)
* Install
[localtunnel](https://localtunnel.me/)

Suppose you are running your local server at port 8000, in a new terminal window, execute this:

* `lt --port 8000`

It will show you output like:

* `your url is: https://whawgpctcs.localtunnel.me`

This is a *temporary* webhook URL that will forward every HTTPS request sent to `https://whawgpctcs.localtunnel.me` to your local server running on port `8000`. 

* Paste this temporary url into Instamojo's webhook field and continue testing.
* **Remember to remove the temporary webhook URL from Instamojo once you are done testing**

The temporary webhook URL is valid as long as the `lt --port 8000` command (and your Internet connection) is active.