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

    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 raised $500K pre-seed for our Reddit Marketing Tool 26 comments Steph Smith on making $130k w/ an ebook, creating a course in 20 days, and the latest trends 10 comments Event-based customer knowledge base - what do you think? 9 comments 🤑 I built and sold an app... (and now I'm rich?) 6 comments Good examples of app onboarding? 4 comments Free 7-day Twitter growth cohort 2 comments