Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deserialize all of a webhook event? #2

Open
m0r6aN opened this issue Mar 13, 2018 · 2 comments
Open

How to deserialize all of a webhook event? #2

m0r6aN opened this issue Mar 13, 2018 · 2 comments

Comments

@m0r6aN
Copy link

m0r6aN commented Mar 13, 2018

I've created a Webhook for a few events. I'm able to tunnel to localhost and send an event from the simulator, but the entire object doesn't deserialize. I'm only able to navigate down to webhookEvent.resource, at which point it is just a json string. I've tried to deserialize the resource object, but nothing works. I need to be able to get the payers email address.

Additionally, PAYMENT_SALE_COMPLETE doesn't contain any payer information and every event from the simulator fails validation.

Any help would be greatly appreciated.

@bjcull
Copy link
Owner

bjcull commented Mar 21, 2018

hmm, perhaps the json payload has changed since it was written. I'd double check that you're on the latest version of the SDK.

Which type are you trying to deserialize to? If nothing else works you can always deserialze to "dynamic" and then manually traverse down the object to get what you need.

@isadukovskiy
Copy link

isadukovskiy commented Nov 18, 2021

Hi Ben. When I run the application the pay pall interface does not let me login in for some reason, is that intended when testing in sandbox? I even tried it in my application where I added the pop up paypal payment with my own sandbox clientId and secret, but experienced same thing. It does work however when I use generated credit card to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants