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.

Using Remote Operations API for Specific Page

Home Forums Community Forum Using Remote Operations API for Specific Page

This topic contains 6 replies, has 3 voices. Last updated by  Raam Dev 4 years, 9 months ago.

Topic Author Topic
Posted: Tuesday Mar 20th, 2012 at 1:55 pm #8630
Michele Durst
Username: mdurst

My client is an instructor and would like to sell access to various classes. Each class would be separate WordPress Page. They will be selling via Infusionsoft and not Paypal.

I looked at the Pro API For Remote Operations but it seems to be restricted to assigning a level from 0 – 4. Am I able to use the same Paypal variables sp=1 and ids=”101,102,103″?

I tried passing the string “sp:506:72” to the data array as “s2member_level”. It did create the user but the new user was not able to access the specific page that I assigned.

List Of Topic Replies

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Wednesday Mar 21st, 2012 at 1:47 am #8683

Hi Michele.

You may want to read this post by Jason:
http://www.primothemes.com/forums/viewtopic.php?f=36&t=3154

I’m not sure how to give Specific Page access through that API, and don’t know how to add SP access to an account using PHP, but I do know how to let someone into an SP restriction if he has a certain level or custom capability.
http://www.s2member.com/forums/topic/give-specific-postpage-access-with-php/#post-8190

Specific Page access is really valuable to sell access without requiring an account. If you’re creating an account, though, you may prefer to stick to custom capabilities.

I hope that helps! :)

By the way, the coming major release of s2Member is planned to have a very improved API to integrate with new gateways and to manage accounts.

Posted: Wednesday Mar 21st, 2012 at 2:00 pm #8782
Michele Durst
Username: mdurst

Hi Cristián,

Thanks for your response. My first attempt at integrating s2Member with my client’s requirements was to use the
IPN w/ Proxy Key as discussed by Jason in that post. It works perfectly when adding a new user with an assigned membership level but once I try to change the item_number from values 1 through 4 to a specific post for a specified length of time such as “sp:506:72”, the log reports ‘Ignoring this IPN request. The `txn_type/status` does NOT require any action on the part of s2Member.’,

I’ve included the output recorded in the log below

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 40.37 MB :: Real Memory 41.75 MB :: Peak Memory 40.87 MB :: Real Peak Memory 41.75 MB
post.equalserving.com/?s2member_paypal_notify=1&s2member_paypal_proxy=Infusionsoft&s2member_paypal_proxy_verification={removed}&custom=post.equalserving.com|sp:506:72|PACC|2|M&item_name=PACC&item_number=sp:506:72&rp=2&rt=M&txn_type=subscr_signup&subscr_id=IFS&last_name={removed}&payer_email={removed}&first_name={removed}&receiver_email={removed}&payer_id=991&s2member_auto_eot_time=2030-12-25&s2member_notes=Administrative
User-Agent: 
array (
  'custom' => 'post.equalserving.com|sp:506:72|PACC|2|M',
  'item_name' => 'PACC',
  'item_number' => 'sp:506:72',
  'rp' => '2',
  'rt' => 'M',
  'txn_type' => 'subscr_signup',
  'subscr_id' => 'IFS',
  'last_name' => '{removed}',
  'payer_email' => '{removed}',
  'first_name' => '{removed}',
  'receiver_email' => '{removed}',
  'payer_id' => '991',
  'proxy_verified' => 'Infusionsoft',
  's2member_log' => 
  array (
    0 => 'IPN received on: Wed Mar 21, 2012 5:55:52 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 'Ignoring this IPN request. The `txn_type/status` does NOT require any action on the part of s2Member.',
  ),
  'subscr_gateway' => 'Infusionsoft',
  's2member_paypal_proxy' => 'Infusionsoft',
  's2member_paypal_proxy_verification' => '{removed}',
)
  • This reply was modified 4 years, 9 months ago by  Raam Dev. Reason: Improved log formatting
Posted: Wednesday Mar 21st, 2012 at 2:01 pm #8783
Michele Durst
Username: mdurst

Oops, meant to ask when the new releases is expected to be published?

Posted: Thursday Mar 22nd, 2012 at 12:29 pm #8841
Raam Dev
Username: Raam
Staff Member

Hi Michele,

The next major release of s2Member is targeted for sometime in the next month or so.

Posted: Thursday Mar 22nd, 2012 at 2:16 pm #8853
Michele Durst
Username: mdurst

Hi Raam,

Any suggestions regarding my earlier post from Mar 21st, 2012 @ 2:00 pm about trying to use the specific post format at the item_number “sp:506:72″. When I try this format the log reports ‘Ignoring this IPN request. The `txn_type/status` does NOT require any action on the part of s2Member.’,

Posted: Friday Mar 23rd, 2012 at 12:17 pm #8919
Raam Dev
Username: Raam
Staff Member

Hi Michele,

The only suggestion I can make is to generate a PayPal button within s2Member that mimics the Specific Page/Post transaction you’re attempting to simulate with the IPN Proxy w/ Key and then looking at the values of the resulting code. You may also want to try making a test purchase using that button to see what gets recorded in the log file and compare that to what’s being generated by your custom script.

Viewing 6 replies - 1 through 6 (of 6 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.