3
8 Comments

How to learn SaaS licensing?

Hi All

I'm trying to add subscription pricing into my B2B SaaS project. It's a teams app for businesses so each company will pay and then it will allow users at that company to use the software.

Does anyone have an idiot's guide to coding a subscription system in NodeJS or any advice on how to do this? I'm not a full-time dev and this is a little out of my comfort zone! It would be fantastic if this is B2B specific, although anything would be helpful.

Thanks for the help!

  1. 1

    I used the guides from Stripe. They literally take you step by step building a subscription model into your web app and your backend. You'd have to use Stripe of course

    For example: https://stripe.com/docs/billing/subscriptions/checkout

    1. 1

      That's amazing thank you, exactly the sort of thing I'm after!

  2. 1

    HI @Rich1122 - Looks like you are building in the Microsoft space. Me too. I'm currently building a MS Teams tab app and have done some work on licensing with Stripe and Keygen.sh. (a LAAS platform )

    How I've done set it up is to use stripe to manage the transactions and keygen to provision licenses.

    The LAAS bit validates based on the license they have bought:
    Individual - uses User guid.
    Team - uses tenant guid and number of seats (actually machines per license)
    Enterprise - anyone with the tenant guid

    The validation has to check both Stripe for a valid sub and a license. If you just have a single enterprise entitity then just put the tenant id against the sub and check stripe
    https://stripe.com/docs/api/subscriptions/retrieve

    Happy to chat - send me a DM - always want to meet MS devs

    1. 1

      Yeah it would be great to connect and that definitely looks helpful, keen to use platforms to help wherever possible

  3. 1

    Subscriptions and payments could be managed through Stripe Checkout, which is a self-service system. Your users self-manage their subscription. You need to implement callbacks (webhooks) so Stripe can tell you when a subscription has been created or modified.

    You could have users sign-in using their email address and use the part after the @ to identify which team (account) they belong to. If their address matches a paid subscription then they gain access.

    1. 2

      Definitely sounds like stripe is the way to go. I should already have access to their company and they'll sign in via azure AD also so should be able to have a lot of that info!

  4. 1

    Have you already chosen a payment provider?

Trending on Indie Hackers
We've bootstrapped to $1.6m ARR in a crowded market. AMA. 40 comments We just reached a major milestone: $500k ARR 🔥 20 comments Idea to 350k Users 16 comments SaaS for OnlyFans creators: An untapped market? 9 comments I bought Twitter•fm. What should I do with it? 7 comments Anyone Still Using an Rss Reader? 7 comments