Skip to content

[Bug]: There is no useful documentation on how to use webhook events #64

@ribtoks

Description

@ribtoks

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

  1. Just try to integrate with this SDK in any real-world example.
  2. ...

What did you expect to happen?

To find code examples that show at leaast any way of using this.

Logs

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions