Currently this Wordpress plugin allows you to sync WooCommerce memberships with Discourse group memberhips when Discourse is the SSO provider. We may add additional WooCommerce to Discourse connections in the future.
See this topic on meta where the code behind the plugin is introduced and explained
Currently the Plan IDs and Group IDs are hardcoded in the plugin. If you need assistance in implementing it reply to this post and we can give you some pointers