# Integration between paidmembershipspro.com and Discourse

**URL:** https://meta.discourse.org/t/integration-between-paidmembershipspro-com-and-discourse/112369
**Category:** Marketplace
**Created:** [March 22, 2019, 8:06pm UTC](https://meta.discourse.org/t/integration-between-paidmembershipspro-com-and-discourse/112369 "2019-03-22T20:06:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dfriestedt](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@dfriestedt](https://meta.discourse.org/u/dfriestedt)
#### Post date: [March 22, 2019, 8:06pm UTC](https://meta.discourse.org/t/integration-between-paidmembershipspro-com-and-discourse/112369/1 "2019-03-22T20:06:28Z")

</div>

What would you like done?  
I’m looking to integrate [paidmembershipspro.com](http://paidmembershipspro.com) with discourse so when a member signs up to a recurring subscription they are added to a private member group in discourse. when that member stops paying for the membership they are removed from the discourse private group.

When do you need it done?  
No rush.

What is your budget, in $ USD that you can offer for this task?  
What ever is fair. However, I would like to make it open source so others can use it too for free. But I’m happy to pay for it to make it open source for others.

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [March 22, 2019, 9:05pm UTC](https://meta.discourse.org/t/integration-between-paidmembershipspro-com-and-discourse/112369/2 "2019-03-22T21:05:40Z")

</div>

I’d be happy to have a conversation about helping.

Feel free to drop me a PM here.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [March 22, 2019, 10:51pm UTC](https://meta.discourse.org/t/integration-between-paidmembershipspro-com-and-discourse/112369/3 "2019-03-22T22:51:24Z")

</div>

I believe this already exists:

> [@Manage group membership in Discourse with WP Discourse SSO](https://meta.discourse.org/t/managing-discourse-group-membership-with-wp-discourse/74724):
>
> [WP Discourse](https://github.com/discourse/wp-discourse) functions The [WP Discourse](https://github.com/discourse/wp-discourse) plugin has a couple of functions that can be used to associate WordPress users with Discourse groups. These functions are only enabled on sites that are using WordPress as the SSO provider for Discourse. add\_user\_to\_discourse\_group( $user\_id, $group\_names ) [View Code](https://github.com/discourse/wp-discourse/blob/main/lib/utilities.php#L278-L301) remove\_user\_from\_discourse\_group( $user\_id, $group\_names ) [View Code](https://github.com/discourse/wp-discourse/blob/main/lib/utilities.php#L303-L326) Each of these functions take the same two parameters: $user\_id: the WordPress user’s id $group\_names: a comma separat…

The code example provided is for Paid Memberships Pro.

---

<div class="post-metadata">

### Author: ![dfriestedt](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@dfriestedt](https://meta.discourse.org/u/dfriestedt)
#### Post date: [March 22, 2019, 10:59pm UTC](https://meta.discourse.org/t/integration-between-paidmembershipspro-com-and-discourse/112369/4 "2019-03-22T22:59:31Z")

</div>

yes - I did see that. Thanks for sharing. I’m going to hire Justin to clean it up and make it open source for everyone to use.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 21, 2019, 10:59pm UTC](https://meta.discourse.org/t/integration-between-paidmembershipspro-com-and-discourse/112369/5 "2019-04-21T22:59:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
