Reply
Member
Posts: 2
Registered: ‎05-20-2019
Accepted Solution

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.

 

 

 

 


Accepted Solutions
Solution
Accepted by topic author scott77
‎05-21-2019 03:50 PM
Member
Posts: 2
Registered: ‎05-20-2019

Re: Debug sandbox webhook on visual studio

[ Edited ]

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


All Replies
All Star
Posts: 733
Registered: ‎11-05-2018

Re: Debug sandbox webhook on visual studio

@scott77

The usual error VS people have is setting a parameterized endpoint. Those never work.
Solution
Accepted by topic author scott77
‎05-21-2019 03:50 PM
Member
Posts: 2
Registered: ‎05-20-2019

Re: Debug sandbox webhook on visual studio

[ Edited ]

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

All Star
Posts: 733
Registered: ‎11-05-2018

Re: Debug sandbox webhook on visual studio

@scott77

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