So I’ve created a “CreateServer” product that will (one day) let someone purchase a Discourse installation. It adds them to the CreateServer group. When someone creates a server, it removes them from the group. That’s all good.
But if someone wants to get a second server, they can’t because they have already purchased the product. Is there a way to allow purchasing the same product multiple times? Or, perhaps my solution is to have the plugin modify the record that they purchased the subscription, and then they can buy another. It’s already removing them from the CreateServer group after they do the installation. . .
product=DiscourseSubscriptions::Customer.find_by(user_id: 2, product_id: create_server_id) product.product_id: 'install fulfilled' product.save
That’ll let the user buy it again. Do you think it’ll break something else?