Adding Polar to a browser extension #5155
-
How to use Polar in a freemium browser extension? From the docs, I see that we need to initialize the typescript sdk via polar access token (fetched from env variable) but there are no env variables in a browser extension. So, I was wondering what's the best practice in adding a payment method to a browser extension? Basically, if I am able to make an API call with the license key (entered by user) from my extension and check its validity and entitlements, I should be good. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I checked the above License Key APIs and all require Authorization tokens. |
Beta Was this translation helpful? Give feedback.
Ah, it's an error in the docs. Validate / Activate and Deactivate definitely don't require a token to be used.