2
10 Comments

How to Sell Extension with Gumroad Licence Key

I have chrome extension right now to sell i am using google groups hence the extension is not publically available until you buy

i saw gumroad https://help.gumroad.com/article/76-license-keys#cURLexample

can help but i have no idea how to use curl in js any suggestions? or any other option to sell (generate new licence key) and check in the chrome extension.

or else i have to code a custom backed the biggest downside is then i have to code the affiliate option fully custom as well

but if i can make it work with gumroad they can handle the affiliate option as well

So how to use curl in JS?

  1. 1

    Hey @theindianappguy, I'm curious — what is the affiliate option you're looking to take advantage of in Gumroad?

  2. 1

    Just fyi - best if you setup a simple intermediatery server because you'll run into cors issues.

    1. 1

      hey @shash7, why would he run into CORS issues? Here's an extension that uses Gumroad's API that doesn't even have the content_security_policy field in the manifest.json: https://robwu.nl/crxviewer/?crx=https%3A%2F%2Faddons.mozilla.org%2Fen-US%2Ffirefox%2Faddon%2Fds-amazon-quick-view-ext%2F

      1. 1

        It didn't work for me.
        @theindianappguy maybe try connecting to gumroad directly. Seems to be working for some extensions.

    2. 1

      have you implemented this before? if so can you help please

      1. 1

        Sure, so you'll need a simple express server. That will route all your gumroad based routes to gumroad.
        In your extension you'll need to add your server to the csp allowed list inside manifest.json

        "content_security_policy": "connect-src http://localhost:4000 https://yourserver.com "
        

        ---
        Just beware that the Gumroad license api is notoriously lacking in features. For instance, if you want to programmatically deactive/reactive a user's license key, you'll need to write your own logic on your server. Generally, you shouldn't be worried about this unless you're making heaps of sales.

        1. 1

          Thanks a lot what do you think if i implement this myself, i mean if i am using my server why don't just create a key and save to server and check

          if i am using my own server i may not use gumroad option then

  3. 1

    There's no curl in javascript but u can use any variation of XHR, for instance, fetch would work just fine.

    1. 1

      yep didn't know how to convert curl to be used as fetch this helped thanks for reply

Trending on Indie Hackers
Getting first 908 Paid Signups by Spending $353 ONLY. 25 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments How I Sourced 60% of Customers From Linkedin, Organically 12 comments Hero Section Copywriting Framework that Converts 3x 12 comments Promptzone - first-of-its-kind social media platform dedicated to all things AI. 8 comments