Switching to Discourse Subscriptions from WordPress Subscriptions

Thrilled to see that you’re doing this.

Yeah this isn’t something the plugin will be able to help with, however, you might be able to use the Stripe API to automate some of this if you have any programming skills. If not, the manual method might be the only way to go.

Just so I’m clear on your problem: you’ve created the subscriptions in Stripe and you want to backfill the access in Discourse? Is that correct?

I think there should be a way to do this via the rake task, but it’s not something I’m going to be able to tackle soon unfortunately. It would be pr-welcome though :smiley: You’d have to create a DiscourseSubscriptions::Customer record with all the appropriate information and then add the user to the group.

You could even run this manually from console, too:

DiscourseSubscriptions::Customer.create(
    user_id: <user id>,
    customer_id: <stripe customer id>
    product_id: <stripe product id>
  )
4 Likes