I have recently set up several websites that do exactly what you described. I use Joomla + j2store Subscriptions and Memberships.
As for communicating with Xero: https://www.cloudpipes.com/integrations/joomla/xero
https://www.j2store.org/blog/digital-marketing/men-vs-women-shopping-behaviour-and-buying-habits.html