@xtandard/entitlements/billing/polar
Polar billing provider: Standard Webhooks verification (byte-compatible
with @xtandard/webhooks/receiver), subscription normalization, reconcile,
checkout / customer-portal link-outs and event-ingestion usage export.
import { … } from "@xtandard/entitlements/billing/polar";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createPolarProvider |
Create the Polar provider (id: "polar"). |
normalizePolarSubscription |
Normalize a Polar Subscription. |
polarStatus |
Map a Polar subscription status to ours (unknown → incomplete). |
signPolarPayload |
Build Standard Webhooks headers for body the way Polar signs it (tests, local tooling). legacy: true signs with the pre-2026-09-08 “Polar HMAC” key. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
PolarProviderOptions |
Options for createPolarProvider. |
PolarSubscriptionObject |
The subset of a Polar Subscription the provider reads. |