Connect Polar
No API key needed. You add one webhook endpoint in Polar with the URL from your Checkout Sync settings, then paste the secret Polar makes back into your settings.
- In your Checkout Sync settings, press Connect a checkout, then Polar, then Connect Polar. You'll see your webhook URL.
- In Polar, open your organization's Settings → Webhooks and press Add Endpoint.
- Paste the URL and leave the format on Raw.
- Tick these events:
order.paid,order.refunded,subscription.canceled,subscription.uncanceled,subscription.revoked,subscription.past_due. - Save. Polar shows the endpoint's secret (it starts with
whsec_). Copy it, paste it into the setup box in your settings and press Save Polar's secret. Until you do, the connection waits and Polar's events are turned away.
An older Polar dashboard that still lets you type your own secret? The setup box has one ready under Your Polar dashboard still lets you type your own secret?: type it into Polar, then press Use this secret.
Good to know
- Renewals arrive as new paid orders and are recorded as their own purchases in Kit.
- Polar doesn't send a card-update link with failed payments. Add your customer portal link under your Polar connection in your settings: it's
https://polar.sh/your-org/portal, where your-org is your organization slug, the name in your Polar storefront address (in Polar, see Settings → General, or open your storefront and add/portal). We then use it asupdate_payment_urlon Payment failed andmanage_urlon Canceled. - Testing with Polar's sandbox? Connect it as a separate checkout and tick This is a Polar sandbox. Sandbox orders then don't count toward your plan.
Import past orders
To import past customers, Polar needs an access token just for the import. In Polar, open Settings, scroll down to Developers and press New Token. Give it the orders:read scope and a short expiry, and paste it into the import box. We delete it as soon as the import ends.