paypal / PayPal-NET-SDK

.NET SDK for PayPal's RESTful APIs
https://developer.paypal.com
Other
536 stars 462 forks source link

Please make something with WebhookEvent #399

Closed ivanromakh closed 4 years ago

ivanromakh commented 5 years ago

paypal version sdk version 1.9.1 dotnet version 4.0.3

code: public JsonResult Index(WebhookEvent event) { // event.resource is empty }

Please fix the resource it is empty object always but in inputStream it isn`t or make it dynamic. I used InputStream now becouse of this and make dynamic object and all works nice but would be better to get it as parameter.

data is from sandbox paypal api image I used inputStream here. image

And get webhookEvent image

Then I serialize and deserialize resource from dynamic to string and from string to Agreement Plan or what I need. image

Please fix WebhookEvent

xjijies commented 4 years ago

Hi @ivanromakh, Do you need any help on this or shall I close this issue?

ivanromakh commented 4 years ago

@xjijies yep sure. This its too old.