Add Polar subscriptions and billing to Convex apps with built-in webhook handling and subscription state management.
npm install @convex-dev/polarA Polar component for Convex.
The @convex-dev/polar component integrates Polar's subscription billing directly into your Convex backend. It handles webhook processing automatically and stores subscription data in your Convex database, letting you check subscription status in queries and respond to billing events in mutations.
This component provides built-in webhook handlers for Polar billing events in your Convex functions. Webhooks are processed automatically and trigger updates to subscription state, eliminating the need for separate webhook endpoints or manual event processing.
The Polar component stores customer and subscription information directly in your Convex tables. You can query subscription status, billing history, and customer data using standard Convex queries, making it easy to build subscription-aware features in your app.
The @convex-dev/polar component includes built-in webhook signature verification using Polar's signing keys. It automatically validates incoming webhooks and processes verified events through your Convex functions, ensuring secure handling of billing data.
The Polar component stores customer profiles, subscription status, billing cycles, and payment events in your Convex database. This data is accessible through standard Convex queries, allowing you to build subscription-gated features and billing dashboards directly in your app.
Yes, the @convex-dev/polar component allows you to define custom handlers for different Polar webhook events. You can add business logic to respond to subscription changes, failed payments, or cancellations using standard Convex mutations and actions.
The @convex-dev/polar component supports all Polar subscription features including multiple plans, usage-based billing, and plan changes. It automatically syncs subscription plan data and billing cycles with your Convex database for real-time subscription management.