cancel
Showing results for 
Search instead for 
Did you mean: 

Debug sandbox webhook on visual studio

Hello All,

 

I created the sandbox account and registered an endpoint for the webhook on all the events and I would like to debug and see the notification message but whenever the payment is made or subscription is created or cancelled not receiveing any notifications on the endpoint.

 

Need experts help here.

 

Note: Used the following to test the web app running in local with remote address.

 

https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti

 

Thanks in advance.

 

 

 

 

scott77
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Thanks for the information.

 

I made it work by creating an endpoint which is accessible from the internet and received the notifications.

 

sample endpoint

http://12.12.133.45/Webhook

 

Controller - Add the below action

 

[HttpPost]
public ActionResult Webhook()
{
     string data = new StreamReader(Request.InputStream).ReadToEnd();

     // Process the data

}

 

hope this helps for others

View solution in original post

3 REPLIES 3
@scott77

The usual error VS people have is setting a parameterized endpoint. Those never work.
Renaissance
All Star

Thanks for the information.

 

I made it work by creating an endpoint which is accessible from the internet and received the notifications.

 

sample endpoint

http://12.12.133.45/Webhook

 

Controller - Add the below action

 

[HttpPost]
public ActionResult Webhook()
{
     string data = new StreamReader(Request.InputStream).ReadToEnd();

     // Process the data

}

 

hope this helps for others

@scott77

Glad the info helped. And your post will help others too. Could you mark this question as solved?