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 :
Download ngrok.
Start ngrok with your local server port number which you would like to test. Eg : ./ngrok 8000 (In Linux)
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.