latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Group Subscription & PayPal

Home Forums Community Forum Group Subscription & PayPal

This topic contains 2 replies, has 3 voices. Last updated by  Jason (Lead Developer) 4 years, 4 months ago.

Topic Author Topic
Posted: Thursday Aug 16th, 2012 at 1:50 am #22176

I am creating a companion plugin to allow for paid S2 subscribers (via PayPal Pro) to have sub members that will have the same privileges/updates/renews/expires/etc… as the group admin.

I am in the process of creating a new sub user and filling out their DB fields and I am curious if it will present a problem if I copy over the admin’s wp_s2member_subscr_id meta field to the new user. Will this bill the account multiple times when a renewal takes place? Will it auto update the sub members when any PayPal changes are made? What is the effect of having two (or more) users with the same wp_s2member_subscr_id?

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Thursday Aug 16th, 2012 at 7:59 am #22209

Hi Brett.

I honestly don’t know what’ll happen if more than one user has the same subscr. ID. Not sure if it’ll apply the updates to both, or if it’ll only work with the first one the query finds, or if it’ll give an error.

I’m emailing Jason to ask him this. I’ll let you know when I hear back from him. :)

Posted: Friday Aug 17th, 2012 at 12:21 pm #22364
Staff Member

Thanks for the heads up on this request for support.

Having more than one member with the same paid Subscr. ID would be produce very unpredictable results within the context of s2Member itself. Payment gateways supply a unique transaction and/or subscription ID for s2Member, which is associated with a specific customer. s2Member expects this value to be a unique identifier for a particular paying customer, so having more than one customer with the same ID is not advised.

s2Member also associates each paid subscription ID with the underlying gateway. So each paying customer will have these two meta fields:

wp_s2member_subscr_gateway
wp_s2member_subscr_id

(always unique for each paying customer)

I would suggest that you add some additional meta fields of your own, instead of modifying these which the s2Member software itself uses. That way you won’t run into any compatibility issues.

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.