X
DocsPolar

Polar

Integrate Polar payments with PayKit.

PayKit provides seamless Polar integration with a unified API that works across all payment providers.

Quick Start

Install the Polar provider:


Setup

Method 1: Environment Variables


Method 2: Direct Configuration


Basic Usage


Next.js catch‑all route. This forwards calls to the generated handlers.


Webhook Setup

Enable Events

In your Polar dashboard, enable the following webhook events:

  • order.paid
  • order.created
  • customer.created
  • customer.updated
  • customer.deleted
  • subscription.updated
  • subscription.created
  • subscription.revoked
  • refund.created

Next.js API Route


Webhook route. This validates and dispatches events.


Vite.js


Environment Variables


Support