New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

billingsdk-polar

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

billingsdk-polar

Polar adapter for Billing SDK

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

billingsdk-polar

Polar adapter for Billing SDK. Support for checkout, subscriptions, and Svix webhook verification.

Installation

npm install billingsdk-core billingsdk-polar

Usage

import { createBilling, definePlans } from "billingsdk-core";
import { polar } from "billingsdk-polar";

const billing = createBilling({
  adapter: polar({
    accessToken: process.env.POLAR_ACCESS_TOKEN!,
    webhookSecret: process.env.POLAR_WEBHOOK_SECRET,
    organizationId: process.env.POLAR_ORGANIZATION_ID,
  }),
  plans,
});

Capabilities

FeatureSupported
Checkout✅
Subscriptions✅
Customer Portal❌
Usage Billing❌
Invoices✅
Plan Sync✅

Webhook Verification

Verifies Polar webhook signatures using the Svix standard (webhook-id, webhook-timestamp, webhook-signature headers) with HMAC-SHA256.

FAQs

Package last updated on 16 Jul 2026

Related posts