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).
-
Get your Polar API key
Go to Polar Dashboard > Settings > Developers. Create a new personal access token.
-
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.
-
Create a campaign
Select Polar as the payment provider in your campaign settings.
How Discounts Work
Section titled “How Discounts Work”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.
Sandbox Environment
Section titled “Sandbox Environment”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.
Auto-Apply
Section titled “Auto-Apply”Polar does not currently support auto-applying discounts via URL parameters. Visitors must enter the discount code manually at checkout.
Webhooks
Section titled “Webhooks”Webhook handling for Polar is planned. Currently, discount code creation and checkout integration work fully. Redemption tracking via webhooks is on the roadmap.
Limitations
Section titled “Limitations”- 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