I used ngrok when I integrated with the payment Amazon payment web service to handle HTTPS during development, not in production. When I worked locally, I did not have HTTPS, so I used ngrok to make the connection easy with the webhook. I also used it when I integrated with Fireblocks and Circle for cryptocurrency. Additionally, with my team, sometimes we needed to test something on my local machine. For example, a front-end developer would ask me to act as a back-end. I would give them the ngrok URL of my local machine, and they could connect and test or establish our API contract to ensure it worked before we uploaded it or pushed it to the cloud or the branch.
I used ngrok when I wanted the webhook of the Amazon payment service to call me when the payment was completed successfully, when the user made a purchase, or when a refund happened. This was because I wanted to depend on the webhook, not on the user interface, to ensure that the payment had already happened or the payment was refunded successfully, or if there was an issue.
When I integrated with Amazon payment, I worked on it first on my local machine and wanted to test the webhook before I pushed my code to the development server. I sometimes edited much of my code to ensure everything was working correctly. This made my productivity very quick and allowed me to finish my task very fast. This was because I could call the Amazon payment via an HTTPS link locally without having to push every time to the development server and wait for the deployment or pipeline to finish before starting. When I push my code, have a code review, and then test, it might take fifty minutes or twenty minutes, which would waste my time. When I worked on it locally and tried to fix the errors by using ngrok to ensure the task was clear and the integration was completed successfully, then I pushed my code to the development server. That did not waste my time; it saved my time. I save one or two hours. That is great for me, and it does not create a bottleneck for my colleague to review my code.



