I have configured Webhook in Sandox account. After few transactions it gets disabled automatically in sandbox.I can't find the root cause behind it. We have have handled exception but not did not log any error realaed to webhook failure. Is there any extra setting required for webhook in Sandbox account except adding endpoints? or is it happening because we are using Sandbox Account.
Do we need to activate webhook programatically before transaction?
Below is code we have used in notification URL for handling Webhook response.
StreamReader reader = new StreamReader(HttpContext.Current.Request.InputStream);
string requestFromPost = reader.ReadToEnd();
if (obj != null && obj.payload != null && obj.payload.id != null)
string transId = Convert.ToString(obj.payload.id);
if (transId != null && transId != string.Empty)
//Code for processing request
We have configured Webhook from Sandbox interface ->Business Settings-> Webhook and not programatically.it get disabled automatically.We have verified all points given by you as below.
Please revert back asap, as it is hampering production environment.
For few transaction it works and automatically get deactivated in sandbox.We are placing order in handler code,Order not get placed and its status automatically set to Inactive.
Now we are programatically handling it for activating webhook if it is aready Inactive.
We will let you know our result.
It gets turned off if it can't connect to your server after 10 tries. They have been working on an email alert for 2 years. https://community.developer.authorize.net/t5/Integration-and-Testing/Webhook-automatically-disabled/...