Docs

Site Configuration Articles & FAQ

webhooks, staging, VPN, test

How to test webhooks on staging which requires VPN?

38989385

2022-09-30T13:02:18Z

2022-10-17T10:28:56Z

338

0

0

256121

How to test webhooks on staging which requires VPN?

How to test webhooks on staging which requires VPN? 

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.

Was this article helpful?
Loading…