Installation
Terminal
Quickstart
Synchronous Usage
Asynchronous Usage
Authentication
The SDK requires an Organization Access Token for authentication. You can generate one from your organization’s settings in the Polar dashboard.Common Operations
Create a Checkout Session
Create a checkout session to accept payments:Get Customer State
Retrieve a customer’s active subscriptions and benefits using their external ID:List Products
Get all products for an organization:Handle Pagination
The SDK automatically handles pagination for list endpoints:Sandbox Environment
You can configure the SDK so it hits the sandbox environment instead of the production one. You just need to add theserver argument when instantiating the client: