-
Notifications
You must be signed in to change notification settings - Fork 24
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
Handle Webhook Payload Parsing #55
Comments
I would like to second this :) |
See readme example webhook controller:
|
Hi @QuinnDamerell , @alexjarvie solution is working for us, please let us know if this works for you ? |
Hi @QuinnDamerell @alexjarvie — can you please confirm if this solution is working for you? |
Thanks for that. That does work, but it would still be nice if there was something a little more all-inclusive. For example, Stripe has:
So you pass it to the webhook body, the signature header, and your private webhook key. It does all of the work to authenticate the call, parse the json, and return an object. It's not too much work to do in chargebee, I do something like this:
It would be nice if that logic above was wrapped into an SDK function and documented, so it's easier to find. |
My biggest issue was it was hard to find that Before that, I was doing it manually by making my own c# classes to mock the ChargeBee json objects. |
Maybe I missed this, but I don't see any way of parsing and handling webhook body message payloads. It would be great if the SDK had some way of giving it the raw webhook incoming json body and allowing the SDK to validate it and parse it into the common model objects.
The text was updated successfully, but these errors were encountered: