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.

About: Robert Kwasny

Sorry, I've not written a description yet. I'll get to it soon!


My Favorite Topics

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
S2 has gone Phantom on me… can't remove

By:  Robert Kwasny in: Community Forum

voices: 3
replies: 4

3 years, 4 months ago  Cristián Lávaque

Pub Post X days for X $$ then make Pending

By:  Robert Kwasny in: Community Forum

voices: 3
replies: 8

3 years, 9 months ago  Cristián Lávaque

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

My Latest Replies (From Various Topics)

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Tuesday Aug 13th, 2013 at 9:52 am #55670

Now getting to a crisis stage!
Reinstalled S2, went to the site… took off the safeguards… uninstalled everything.
Went into CiviCRM, looked at User Roles and Permissions and S2 was all over the place in there…
Went to the donation page… and get this message

Sorry but we are not able to provide this at the moment.
You do not have permission to access this page
Return to home page.

What next?

Thanks!!

Posted: Tuesday Aug 13th, 2013 at 9:08 am #55669

Thanks Bruce…
I’m guessing that I’ll just have to reinstall S2 without Pro to get rid of the roles…
Please verify…
Much appreciated!
R

Posted: Monday Apr 1st, 2013 at 12:54 pm #46281

Wonderful Reply Cristian!
Learned a lot from it — much appreciated.

OK, so I’m thinking I’m getting close to a spec, that I can hand over to someone to handle the chunk(s) that will need to be built… but with your excellent knowledge of S2Member, I have to know what’s even possible so that I can start my contractor in a “doable direction”.

Please be on the “lookout” for that “what the hell stuff — we can’t do that”… because my impression in going through the documentation and watching the videos… is leading me to believe that all my steps below can be reasonably easily accomplished with some effort… that nothing I’ve put as a step… is a modification crusher, causing a complete rethink of the way to process these “automatically date sensitive, auto expiring Paid Posts”.

To review and clarify… old stuff is not bold, new stuff — is…
My last two entries were:

9) That Post always has an unique ‘tag_id=xxxxx’ and that number is also associated with this member.

No, posts are not associated to users in WP, unless you’re talking about a customization you’d create for this?

‘tag_id=xxxxx’ is associated with the user… I’ve dug into this… and when I go to the member user history, it shows all the posts that are associated with that member, when I click on the “number of posts” it expands and shows all posts… so the question #10 “seems” like it would be possible… see below.

10) In S2member’s Transaction History… I want to ADD that ‘tag_id=xxxx’ to that single paid transaction in the transaction flow — passed along so the other items retrieved by the s2_payment_notification API and stored — so that I know when the expiration date of the transaction is — associated with that particular Post — are all related. “Payment” = “Post stays up for that length of time” (but I’ll need to create a script to do that housekeeping)

s2Member doesn’t have a transaction history. You could create one with the Payment Notification and a custom script, though.


GREAT!! Payment Notification and Custom script can create the Transaction History — super!!! If I actually clarify what I hope can happen — by studying your answers… I’ll summarize the concept below and you can let me know if S2member is able to pass the information forward, through PayPal so that it will come full circle when the API finds out that a time sensitive transaction has expired.

14) I’m guessing that S2member passes $user_id to PayPal and that is why the s2_payment_notification API is actually able to return the information. (yes/no?)

When the user is logged in at the time he loads the page with the pro-form, the pro-form will include the user’s ID so s2Member knows to upgrade that account after checkout.


Your answer to #14 gives me hope… but the critical data point… that will make this “really work” is detailed in my spec below…

Again, your insight and suggestions are truly appreciated — feel free to intersperse per each line as before… that worked really well !!

The Summary for my contractor:

1) As the Member — registers — WordPress will automatically assign a standard WP Role.

2) Registered Members — are assigned Author Role and when they create a Post — they are still a S2 Level 0

3) The Member finishes the post and then S2Member prompts for payment for that Post

4) The Post/S2 contains a way to select from dedicated buttons (3 days, 5 days, 10 days, 20 days, etc…)

5) Member selects from Payment Options, Pays and becomes a S2 Level 1

6) The Transfer of information to PayPal includes the usual information but ALSO includes the Post_ID#

7) PayPal hangs onto the Custom Field passed to them — that field being the Post_ID#

8) When the s2_payment_notification API gets information from PayPal, the MemberID, it includes the Custom Field Post_ID# and the normal EOT Notificiation information typically returned.

9) Whether the s2_payment_notification API needs to write to the MySQL database, or to a new text file… it seems like the “actionable set” of data… the critical ones being just the date that the “post needs to change from Published to Pending Review” and the “Post_ID#” will be available for a script to act upon.

10) That script, reads the Text File or scans the MySQL database, and updates the Published Status of every Post that has the expired date in the records.

11) If the Member decides to extend the Post by paying again, with their Role as Author, they would be able to edit the Post and “repay” by changing anything in the Post at all.

12) When the Post Publishes — just like in Step #3 happens again — S2Member would prompt for payment again… so this would indicate that the Transaction_ID# from PayPal, would change to be able to track this “new transaction”.

13) Unless it’s better handled by S2Member, to Update that original charge — which is beyond my understanding of the interoperability between S2Member and PayPal Pro with Recurring Charges Account.

I’m trying hard to define this accurately for the best result and think this is going to be an excellent feature for future S2Member Pro users…

Thanks again for your thoughts and the time taken to think this through with me!!

R

Posted: Friday Mar 29th, 2013 at 9:35 pm #46116

Wow, my brain is on FIRE…

And that’s a good thing… but I need verification that I didn’t just burn it out.

I’m going to add a tad more than I normally would…
Just for continuity and so you understand, what I think I understand.

I’ll number my assumptions for ease of reference:
(or feel free to add comments under each numbered line — which I’ve tried to make “bite sized”)

1) When my Level Zero Visitor — joins they get a Member ID and/or does a “transaction upgrades” to Level One.

2) When the transaction processes as Paid, an unique PayPal Transaction ID is created for that Transaction

3) Guessing that that TransID gets stored in the Database — but that’s my first question, does it? (yes/no?)

4) If it does not, I’ll want a s2_payment_notification API to get the info and store it — (yes/no?)

5) When I S2member Browse Users, I’ll see their Paid Subscr. ID (pretty sure that’s correct)

6) If they have more than one transaction, I’ll be able to open Transactions to see the TransID (yes/no?)

7) If I run a s2_payment_notification API… all the Custom ID’s returned from PayPal will be viewable inside of the S2member Browse Users screen (yes/no?)

8) If that same MemberID, is given the Role of Contributor — they will be authorized to Post yes/no? (seems so)

9) That Post always has an unique ‘tag_id=xxxxx’ and that number is also associated with this member.

10) In S2member’s Transaction History… I want to ADD that ‘tag_id=xxxx’ to that single paid transaction manually so the other items retrieved by the s2_payment_notification API and stored — so that I know when the expiration date of the transaction is — associated with that particular Post — are all related. “Payment” = “Post stays up for that length of time” (but I’ll need to create a script to do that housekeeping)

11) That Housekeeping Script (Cron Run Daily) will look at the expiration date, add a day of grace, then flip “Published” to “Pending Review” making the Post “invisible again”… while still retaining the post — which allows the possibility of renewing that post with new payment.

12) Regarding a new payment, that new TransID will be associated with the Member and just like in step 10, we would just add that unique ‘tag_id=xxxx’ to that new single paid transaction manually, set the Post to Published and we are good to go…

13) I see the lines (42-50) in s2_payment_notification API that: Gets auto_eot_time,
Downloads the log by $user_id (from PayPal (grabbing ALL transactions for that $user_id I’m guessing)
Appends a static text file on site
and that Static Text File might be an easy, fast way to get great spreadsheet access
if sorted by all MemberID’s that had Paid PayPal TransID’s,
but had not yet had a Post ‘tag_id=xxxx’ assigned to that transaction.

14) I’m guessing that S2member passes $user_id to PayPal and that is why the s2_payment_notification API is actually able to return the information. (yes/no?)

HERE is where the biggest questions are — now that you get where I’m going with all this:

15) If I had the member create the Post first, I would have the ‘tag_id=xxxx’ available for possible use. (yes/no?)

16) If I then had the member pay with a custom button for X days, can the ‘tag_id=xxxx” be passed THROUGH to PayPal, so that when the s2_payment_notification API — RETURNS the standard and optional values… everything would already be in place for the Housekeeping Script — which would remove the manual step from the process. (yes/no?)

So here’s the deal… I have a great friend that is a PHP guy… and I make a hell of a Camtasia Training Video on a real regular basis… so I’m not going to be a huge load on your support efforts. But if you’ll take the time to help identify any steps that I’ve left out… or suggestions for a better way to do this… My friend and I will make you a “knock your socks off” training video that really shows a Newbie how to navigate these waters.

Thanks in Advance… your example Payment Notification API was a huge help already!!!
Robert

Posted: Friday Mar 29th, 2013 at 5:19 pm #46098

Excellent… thanks Bruce… will give it a spin!
R

Posted: Friday Mar 29th, 2013 at 5:09 pm #46093

Hi Bruce,
Great links, much appreciated…
And how would you suggest to set up the individual purchases by day?
A button for whatever length of time?
Or some other way…
In the mean time… I’ll review the API tools.
Have a great weekend!
Robert

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

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.