Skip to content

Polar

  1. In Settings → Integrations, select Connect next to Polar. Pingado shows your webhook URL.
  2. In Polar, go to Settings → Webhooks → Add endpoint, paste the URL, and choose the Raw format.
  3. Select order.created and subscription.created.
  4. Copy the webhook secret and paste it into Pingado.
https://yoursite.com/thanks?checkout_id={CHECKOUT_ID}

When you create checkouts with the Polar API, set the visitor ID in the checkout metadata:

const checkout = await polar.checkouts.create({
products: [productId],
metadata: { pg_vid: vid },
successUrl: 'https://yoursite.com/thanks?checkout_id={CHECKOUT_ID}',
})

Get vid in the browser with window.pingado.vid() and send it to your server with the checkout request.