# Switching to Discourse Subscriptions from WordPress Subscriptions

**URL:** <https://meta.discourse.org/t/switching-to-discourse-subscriptions-from-wordpress-subscriptions/167917>\
**Category:** Feature\
**Tags:** subscriptions\
**Created:** [October 21, 2020, 9:44pm UTC](https://meta.discourse.org/t/switching-to-discourse-subscriptions-from-wordpress-subscriptions/167917 "2020-10-21T21:44:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [October 21, 2020, 9:44pm UTC](https://meta.discourse.org/t/switching-to-discourse-subscriptions-from-wordpress-subscriptions/167917/1 "2020-10-21T21:44:10Z")

</div>

Continuing the discussion from [Discourse Subscriptions](https://meta.discourse.org/t/discourse-subscriptions/140818)

As the Discourse Subscriptions plugin matures I want to start planning for moving my **existing memberships** from WooCommerce Subscriptions to Discourse Subscriptions. The process below should apply to other WP membership/subscription plugins, not just WooCommerce.

There are three elements of this transition that need to be addressed:

1. Creating subscriptions in Stripe
2. Linking the Stripe subscription to the user in Discourse
3. Reversing SSO so that Discourse becomes the SSO provider and WordPress the client

### (1) Creating subscriptions in Stripe

It looks like creating the subscriptions in Stripe for **existing users** is a **manual** process at the moment. My members are already in Stripe, so the workflow would look something like this:

- Export all subscribers and data from WooCommerce Subscriptions
- Create a subscription in Stripe for a user from the customer Stripe dashboard and schedule the first payment to match the expiration date of the existing WooCommerce subscription.
- Cancel the user’s subscription in WooCommerce.
- Disable WooCommerce Subscriptions when done with all users.

 ![customer dashboard](https://global.discourse-cdn.com/meta/original/3X/a/4/a4f0f155d47ff0cdff3bb3de8943ba5707349a8b.png)

 ![schedule subscription](https://global.discourse-cdn.com/meta/original/3X/d/8/d8730d4f215c75de7ed6ee0ca33e07cd129988d8.png)

More info from [Stripe about migrations](https://stripe.com/docs/security/data-migrations/imports).

### (2) Linking the Stripe subscription to the user in Discourse

Once the user is set up with a subscription in Stripe, how can we add this existing user to a subscription plan in Discourse? This is needed to give the user the ability to cancel the subscription and to remove the user from the group if the Stripe payment fails.

### (3) Reversing SSO to use Discourse as provider and WP as client

This part is described [here](https://meta.discourse.org/t/wp-discourse-plugin-installation-and-setup/50752#heading--sso-client).

* * *

I’m stuck on figuring out if #2 can be done and would love to hear if anyone has made this switch.

Can the rake task `rake subscriptions:import` be expanded or another task added to also import and link user subscriptions?

---

_[View the full topic](https://meta.discourse.org/t/switching-to-discourse-subscriptions-from-wordpress-subscriptions/167917)._
