How to test webhooks on staging which requires VPN?

Modified on: Mon, 17 Oct, 2022 at 3:58 PM

This article covers 

How to test webhooks on staging which requires VPN?


Summary


Currently, it is not possible with our current infrastructure to support testing webhooks on staging which requires VPN, as Chargebee APIs are dynamic. We can not provide any dedicated IP of Chargebee so that it can be whitelisted to avoid the issue.


To overcome this we suggest using services such as ngrok for testing purposes. 


Solution


Currently, it is not possible with our current infrastructure to support testing webhooks on staging which requires VPN, as Chargebee APIs are dynamic


To overcome this we suggest using services such as ngrok for testing purposes. 

You can test webhooks locally using the same :


  1. Download ngrok.

  2. Start ngrok with your local server port number which you would like to test. Eg : ./ngrok 8000   (In Linux)

  3. A URL will be generated. Update this URL as your webhook URL in ChargeBee under Settings -> API & Webhooks > Webhook Settings.


Now your local server can receive the webhook sent from Chargebee. 



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×