Title: User Flow
Last modified: March 16, 2023

---

# User Flow

 *  Resolved [smellygit](https://wordpress.org/support/users/smellygit/)
 * (@smellygit)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/user-flow/)
 * Hi guys,
 * I have members that pay for monthly subscriptions for my services already through
   Stripe and my next step was to integrate a WordPress site with this plugin allowing
   the users with Stripe memberships to get access to premium content on my site.
 * I did a test with the plugin linking to my Stripe membership and it created a
   new membership and also created a new WordPress account for me to be able to 
   see the content. But no users that have signed up have worked since.
 * What should the user flow be for this plugin when they click to signup to a membership?
 * Cheers
    -  This topic was modified 3 years, 2 months ago by [smellygit](https://wordpress.org/support/users/smellygit/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [David Parker](https://wordpress.org/support/users/dlparker1005/)
 * (@dlparker1005)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/user-flow/#post-16577338)
 * Hi [@smellygit](https://wordpress.org/support/users/smellygit/),
 * When a logged-out user visits a page that is restricted to a Stripe Product, 
   they should be shown a form allowing them to create an account and a submit button
   that will send the user to Stripe Checkout after their account is created. A 
   sample screenshot of this form can be found at the top of our plugin’s website
   here: [https://restrictwithstripe.com](https://restrictwithstripe.com)
 * Can you please confirm whether that form is showing when you try to view restricted
   content while logged out? If so, can you please try to perform a checkout as 
   a new test user and let me know if that works as expected?
 *  Thread Starter [smellygit](https://wordpress.org/support/users/smellygit/)
 * (@smellygit)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/user-flow/#post-16579628)
 * Thanks for the reply David.
 * I see that it works as a new user signing up to the Stripe product. But I guess
   I was wondering if it works when you link WordPress to a Stripe product that 
   already has members in it, or if I was to import a user database into my Stripe
   product, would new accounts be created on WordPress? Is there a way to manually
   link a new user to a Stripe payment?
 * Cheers
   Gary
 *  Plugin Author [David Parker](https://wordpress.org/support/users/dlparker1005/)
 * (@dlparker1005)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/user-flow/#post-16581077)
 * Hi Gary,
 * Restrict With Stripe links WordPress users to Stripe customers by storing the
   ID for the Stripe Customer as metadata on the WordPress user object. The WordPress
   user is then said to have purchased a Stripe product if their associated Stripe
   Customer has an active subscription for that product.
 * There is not currently a user-friendly way to set the Stripe Customer ID for 
   a specific WordPress user, but I have just added this as a feature request on
   the Restrict With Stripe repository here:
   [https://github.com/strangerstudios/restrict-with-stripe/issues/17](https://github.com/strangerstudios/restrict-with-stripe/issues/17)
 * In the meantime, if you would like to link a user to a specific Stripe account,
   this would need to be done directly in the `wp_usermeta` table of your database
   by finding the entry with the `user_id` of the user who you would like to link
   to Stripe and the `meta_key` beginning with `rws_customer_id_`. Updating the 
   associated `meta_value` with the ID of the Stripe Customer should give the user
   the access that the Stripe Customer has purchased.
 * For your use case, you would need to create a WordPress user and then update 
   its meta value for each Stripe Customer that you would like to import. We highly
   recommend backing up your database before making any manual changes so that those
   changes can be reverted if anything goes wrong.
 * Please let me know if this all makes sense or if you have any clarification questions
   about this.
 *  Thread Starter [smellygit](https://wordpress.org/support/users/smellygit/)
 * (@smellygit)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/user-flow/#post-16581306)
 * Hi David,
 * It sounds like that feature would be perfect for me then.
 * So in my case, I’m going to have to create 100+ user accounts (or import them).
   Then go into the database and manually add the ID of each member to their ‘rws_customer_id_’
   key. (Unless I can import this too).
 * As long as I know it can be done, that’s fine, even if it’s going to take a while.
   New signups will be fine.
 * Cheers
   Gary
 *  Plugin Author [David Parker](https://wordpress.org/support/users/dlparker1005/)
 * (@dlparker1005)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/user-flow/#post-16581420)
 * Hi Gary,
 * We have actually just released Restrict With Stripe v1.0.5 which adds the ability
   to include the Stripe Customer ID when creating a new user in WordPress and also
   allows for updating the Stripe Customer IDs for existing users when editing their
   profiles. This update should prevent the need to make changes directly to the
   site’s database.
 * Once you know the `rws_customer_id_` key for your site (it contains your Stripe
   account ID which is why it varies from site to site), it should also be possible
   to import users in bulk using a WordPress user import plugin that allows for 
   importing user metadata.
 * I hope this helps to get you started! Please let me know if you have any further
   questions about this.
    -  This reply was modified 3 years, 1 month ago by [David Parker](https://wordpress.org/support/users/dlparker1005/).
 *  Thread Starter [smellygit](https://wordpress.org/support/users/smellygit/)
 * (@smellygit)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/user-flow/#post-16581429)
 * Wow, thank you for the quick plugin update. Will definitely give it a test.
 * Cheers

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘User Flow’ is closed to new replies.

 * ![](https://ps.w.org/restrict-with-stripe/assets/icon-256x256.png?rev=2812036)
 * [Restrict With Stripe - Sell Access to Posts and Pages with Stripe](https://wordpress.org/plugins/restrict-with-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-with-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-with-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-with-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-with-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-with-stripe/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [smellygit](https://wordpress.org/support/users/smellygit/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/user-flow/#post-16581429)
 * Status: resolved