Skip to content

Polar

Integrate GoPayLocal with Polar for PPP discounts.

Polar is a modern funding and monetization platform for open-source developers. GoPayLocal creates discounts in Polar using basis points (hundredths of a percent).

  1. Get your Polar API key

    Go to Polar Dashboard > Settings > Developers. Create a new personal access token.

  2. Connect in GoPayLocal

    Go to your GoPayLocal dashboard > Settings > Integrations > Polar and click Connect. Enter your access token in the dialog.

    Click Test after connecting to verify your credentials.

  3. Create a campaign

    Select Polar as the payment provider in your campaign settings.

Polar uses basis points for discount amounts (1 basis point = 0.01%). A 30% discount is represented as 3000 basis points:

{
"code": "PPP-INDIA-30",
"basis_points": 3000,
"type": "percentage"
}

GoPayLocal handles the conversion automatically — you configure discounts as percentages in the dashboard, and they are converted to basis points for the Polar API.

Polar provides a sandbox for testing:

  • Sandbox URL: https://sandbox.polar.sh
  • Separate API keys for sandbox
  • Test payments available

Set the environment to sandbox in your GoPayLocal integration settings.

Polar does not currently support auto-applying discounts via URL parameters. Visitors must enter the discount code manually at checkout.

Webhook handling for Polar is planned. Currently, discount code creation and checkout integration work fully. Redemption tracking via webhooks is on the roadmap.

  • No auto-apply via URL parameters
  • Discounts are specified in basis points (GoPayLocal handles conversion)
  • Newer platform with a smaller API surface
  • Best suited for open-source monetization use cases