Using Invoice Ninja for paid memberships for a Discourse community

I put code up on my forgejo under GPL for using invoice ninja to handle recurring payments for paid memberships for a discourse community.

In a nutshell, this is how new members are handled:

  • If the person already has a Discourse account, they are added directly to the appropriate group.
  • If they don’t have an account yet, they are sent an invitation by email. On acceptance they are automatically added to the group.
  • Upgrades and downgrades between plans are handled gracefully — members are moved between groups as needed.
  • A welcome PM is sent to each new or upgraded member using a template fetched from a designated Discourse templates category.

If you decide to use it, let me know! Happy to get feedback or accept PRs to make it more generalizable, if there is wider interest in it. I think it’s been pretty great for managing my independent technology consulting business, which is oriented around premium memberships on a private, invite-only discourse site.

This code is tailored for my setup so if you decide to use it you’ll have to customize it to suit the plans you want to offer. Happy to help out with this if folks are interested.

Really enjoying using Invoice Ninja and appreciating the software so much. Open source, ftw! :flexed_biceps:

1 Like