Making group joins automatic to an external pricing plan

Are you using Discourse connect?

If not you can have a plugin that queries your site on login and/or have your site update user groups via the API.