Reach for Polar when you meter and bill on consumption, or sell digital products and benefits to a developer audience. License keys, downloads, and gated benefits map straight to CashSDK entitlements.
Polar
Connect Polar (a developer-native merchant of record with usage-based billing) so orders, subscriptions, and metered usage map to CashSDK entitlements.
Polar is a developer-native merchant of record with first-class usage-based billing and an open-source heart. It is built for teams selling to developers (clean APIs, metered usage, and digital benefits) while still handling tax as the seller of record. Connect it to CashSDK and consumption-based revenue lines up next to seat-based and in-app revenue.
How it works#
Add a Polar access token so CashSDK can read products, subscriptions, and metered usage.
Each Polar product maps to a CashSDK product and the entitlement it unlocks; metered usage reconciles as consumption revenue.
Every order, subscription, and benefit-grant event is verified and merged into your unified revenue ledger.
Connect Polar#
In Polar, go to Settings → API keys (or your organization's developer settings) and create an organization access token. Copy it.
Open Settings → Billing → Polar and paste the token. It is stored encrypted at rest. Use Polar's sandbox environment while you build.
Copy the endpoint URL from Settings → Billing → Polar and add it in Polar under Settings → Webhooks. Subscribe to the order, subscription, and benefit events, and paste the webhook secret back into CashSDK.
Map your catalog#
For each Polar product, create a matching product in CashSDK and attach the entitlement it unlocks. For usage billing, map the meter to a consumable so metered revenue reconciles alongside subscriptions.
Test and go live#
Connect a Polar sandbox token and complete a checkout. Confirm the entitlement is granted and the order appears under Events.
Swap in your production token and webhook secret, and move the SDK to
csk_pk_….