-
Notifications
You must be signed in to change notification settings - Fork 6
Description
What happened?
When you're trying to use this SDK, it's not clear at all how to handle any, even the most simple webhook.
Say, I want to handle "subscription created" webhook. What data types should I use? paddle.SubscriptionCreatedEvent or maybe paddlenotification.SubscriptionCreated. I don't want to manually map json from the doc page to all types that look like that json, which are at least 3 (Notification and those two I mentioned earlier). It will be very helpful if there were code examples.
Not to mention that now every person who wants to use this code, needs to at least partically copy-paste the switch-case from unmarshalEvent() (file events.go). Would be great if there was a recommended way to do this in an easy form.
Steps to reproduce
- Just try to integrate with this SDK in any real-world example.
- ...
What did you expect to happen?
To find code examples that show at leaast any way of using this.
Logs
No response