Skip to content

Add Polar Webhook Support #16

Description

@Prateek32177

We want to add webhook support for Polar in tern. Polar sends events for sponsorships, payouts, and other platform activities.

Tasks

Webhook Handler

  • Implement /src/platforms/polar.ts.
  • Normalize payloads into tern’s event format.

Platform Config

  • Add platformConfigs.polar with supported events (e.g., sponsorships/created, payouts/processed).

Test Cases

  • Add JSON fixtures for 3+ events (sponsorship created, payout processed, etc.).
  • Write Jest tests in /tests/polar.test.ts.

Docs

Acceptance Criteria

  • Polar handler implemented
  • Manual or secret-based webhook verification supported
  • Tests with 3+ event types
  • Docs updated

Helpful Links: Polar Webhooks Docs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions