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.

Paypal and s2member profile fields

Home Forums Community Forum Paypal and s2member profile fields

This topic contains 12 replies, has 2 voices. Last updated by  Bruce 4 years, 1 month ago.

Topic Author Topic
Posted: Monday Dec 3rd, 2012 at 12:42 am #33263

Hi,

I have members successfully paying for memberships through paypal, however when I go to their profile, the s2Member Configuration & Profile Fields are empty, except for Registration IP:

http://s17.postimage.org/tlrnd1vr3/s2member.jpg

My memberships are yearly, however how can I see in the user profile when is the next payment due?
Are the Configuration & Profile Fields, specifically the Paid “Subscr. ID:” ID, supposed to be empty as per image above when all my subscriptions are through PayPal?

  • This topic was modified 4 years, 1 month ago by  Marco Delgado.

List Of Topic Replies

Viewing 12 replies - 1 through 12 (of 12 total)
Author Replies
Author Replies
Posted: Monday Dec 3rd, 2012 at 1:53 am #33271
Bruce
Username: Bruce
Staff Member

Hi Marco,

s2Member should fill these forms for users that have checked out through PayPal. If these fields are not being populated, then there is likely an issue with the queries that are being performed, or a plugin conflict.

I would begin troubleshooting by verifying that none of your users have these fields populated. The easiest way to do this would be to browse your users with the custom column for Paid Subscr. ID turned ON in your WordPress Dashboard.

Posted: Monday Dec 3rd, 2012 at 2:00 am #33272

Hi Bruce,

I’ve checked and none of paid members have these details.

What’s the next step to fix this?

Thanks for your help

  • This reply was modified 4 years, 1 month ago by  Marco Delgado.
Posted: Monday Dec 3rd, 2012 at 1:10 pm #33324
Bruce
Username: Bruce
Staff Member

Hi Marco,

I just checked the feature on multiple development servers and it appears to be functioning correctly in default instances of s2Member.

This leads me to believe that this is most likely a plugin conflict. Can you try editing a custom profile in one of your already-created members and see if it saves the changes? If not, then the issue most likely lies in a plugin or hack that is editing or adding data to users automatically. If it does save changes, then this could be an issue with a plugin blocking queries, or hooking into the user_register hook/filter.

If you could send a list of activated plugins, and any Must-Use plugins that you have running that would help greatly.

Posted: Monday Dec 3rd, 2012 at 4:43 pm #33370

Hi Bruce,

These are my currently active plugins:

All-in-One Event Calendar by Timely
Custom Post Widget
NextGEN Gallery
s2Member® Framework

Posted: Monday Dec 3rd, 2012 at 4:51 pm #33371
Bruce
Username: Bruce
Staff Member

Thanks Marco.

I’m going to take a look at these plugins and see if there is anything that could be filtering these queries.

As I mentioned before, it would be great if you could try adding something to a custom field in your WordPress Dashboard, and see if it saves the changes correctly.

Could you also run the Server Check Tool?

Posted: Monday Dec 3rd, 2012 at 5:09 pm #33375

Bruce,

I tried saving one of the EOT dates (+1year) and it was saved perfectly.

Will try the server check tool now.

Posted: Monday Dec 3rd, 2012 at 5:12 pm #33377
Posted: Monday Dec 3rd, 2012 at 6:11 pm #33380
Bruce
Username: Bruce
Staff Member

Hi Marco,

It sounds like there’s something going on with your PayPal IPN setup.

Could you please copy the shortcode you’re using to make one of your PayPal buttons? Also, make sure logging is enabled under Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging, and send over the PayPal IPN log file (with sensitive data xxx’d out) so that we can take a look.

Also, you will want to check your PayPal IPN setup in your PayPal account to ensure that it is the exact URL provided in Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration.

Posted: Monday Dec 3rd, 2012 at 10:18 pm #33405

Bruce,

1) I’ve turned logging on.
2) I didn’t have the IPN Integration URL in PayPal. I’ve corrected this… I hope is the reason why s2member didn’t populate the fields.

I went to PayPal and resent the IPN details for one of the transactions, however the information is still not shown in the members profile.

  • This reply was modified 4 years, 1 month ago by  Marco Delgado.
  • This reply was modified 4 years, 1 month ago by  Marco Delgado.
Posted: Monday Dec 3rd, 2012 at 11:17 pm #33412

This is what I can see in the log after I resent the IPN transation in Paypal:

PHP v5.3.3 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 38.48 MB :: Real Memory 38.75 MB :: Peak Memory 38.54 MB :: Real Peak Memory 38.75 MB
www.aih.org.au/?s2member_paypal_notify=1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
array (
  's2member_log' => 
  array (
    0 => 'Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.',
    1 => 'If you\'re absolutely SURE that your configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect/communicate with your Payment Gateway over an HTTPS connection.',
    2 => 's2Member uses the `WP_Http` class for remote connections; which will try to use `cURL` first, and then fall back on the `FOPEN` method when `cURL` is not available. On a Windows® server, you may have to disable your `cURL` extension; and instead, set `allow_url_fopen = yes` in your php.ini file. The `cURL` extension (usually) does NOT support SSL connections on a Windows® server.',
    3 => 'Please see this thread: `http://www.s2member.com/forums/topic/ideal-server-configuration-for-s2member/` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_notify\' => \'1\',
)',
  ),
)

PHP v5.3.3 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 38.38 MB :: Real Memory 38.50 MB :: Peak Memory 38.45 MB :: Real Peak Memory 38.50 MB
www.aih.org.au/?s2member_paypal_notify=1
User-Agent: 
array (
  'payer_id' => 'URCYTMRZ3WL7Y',
  'option_selection1' => '78',
  'option_selection2' => '203.52.130.163',
  'ipn_track_id' => 'e975abbb2b269',
  'invoice' => '50bbdd3119aea~203.52.130.163',
  'charset' => 'windows-1252',
  'payment_gross' => '',
  'verify_sign' => 'An5ns1Kso7MWUdW4ErQKJJJ4qi4-AwkyDDRj1paRGZ0aKlL.IMB9Wi6O',
  'item_name' => 'AIH Membership - Members & Fellows / description and pricing details here.',
  'txn_type' => 'subscr_payment',
  'receiver_id' => 'YSZQ2A4LMULC2',
  'payment_fee' => '',
  'mc_currency' => 'AUD',
  'transaction_subject' => 'AIH Membership - Members & Fellows / description and pricing details here.',
  'custom' => 'wp.aih.org.au',
  'protection_eligibility' => 'Ineligible',
  'payer_status' => 'unverified',
  'first_name' => 'Michael',
  'subscr_id' => 'I-CUABVFWBPCSE',
  'mc_gross' => '290.00',
  'payment_date' => '15:03:58 Dec 02, 2012 PST',
  'payment_status' => 'Completed',
  'business' => 'webmaster@aih.org.au',
  'item_number' => '1',
  'last_name' => 'Castley',
  'txn_id' => '12L51824M4324801E',
  'mc_fee' => '7.26',
  'resend' => 'true',
  'payment_type' => 'instant',
  'notify_version' => '3.7',
  'option_name1' => 'Referencing Customer ID',
  'option_name2' => 'Customer IP Address',
  'payer_email' => 'michael.castley@privateforests.tas.gov.au',
  'receiver_email' => 'webmaster@aih.org.au',
  'residence_country' => 'AU',
  's2member_log' => 
  array (
    0 => 'IPN received on: Tue Dec 4, 2012 4:13:44 am CET',
    1 => 's2Member POST vars verified through a POST back to PayPal®.',
    2 => 'Unable to verify `$_SERVER["HTTP_HOST"]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.',
  ),
  'subscr_gateway' => 'paypal',
)

PHP v5.3.3 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 38.49 MB :: Real Memory 38.75 MB :: Peak Memory 38.55 MB :: Real Peak Memory 38.75 MB
www.aih.org.au/?s2member_paypal_notify=1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
array (
  's2member_log' => 
  array (
    0 => 'Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.',
    1 => 'If you\'re absolutely SURE that your configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect/communicate with your Payment Gateway over an HTTPS connection.',
    2 => 's2Member uses the `WP_Http` class for remote connections; which will try to use `cURL` first, and then fall back on the `FOPEN` method when `cURL` is not available. On a Windows® server, you may have to disable your `cURL` extension; and instead, set `allow_url_fopen = yes` in your php.ini file. The `cURL` extension (usually) does NOT support SSL connections on a Windows® server.',
    3 => 'Please see this thread: `http://www.s2member.com/forums/topic/ideal-server-configuration-for-s2member/` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_notify\' => \'1\',
)',
  ),
)

This is the button that was used to create the payment above:

[s2Member-PayPal-Button level="1" ccaps="" desc="AIH Membership - Members & Fellows / description and pricing details here." ps="paypal" lc="" cc="AUD" dg="0" ns="1" custom="wp.aih.org.au" ta="290" tp="1" tt="Y" ra="290" rp="1" rt="Y" rr="1" rrt="" rra="1" image="http://aih.org.au/images/paypal.gif" output="anchor" /]

I notice that custom=”wp.aih.org.au” – I used the subdomain wp.aih.org.au for testing before launching… could this be the problem? The WP instance is not running on wp.aih.org.au anymore, rather aih.org.au

  • This reply was modified 4 years, 1 month ago by  Marco Delgado.
Posted: Tuesday Dec 4th, 2012 at 1:34 am #33415

Update:

I’ve managed to get information from PayPal, the problem was a combination of the lack of IPN and PTN/Auto Return integration.

I’m opening another thread with another question.

Posted: Tuesday Dec 4th, 2012 at 6:00 pm #33483
Bruce
Username: Bruce
Staff Member

Hi Marco,

Glad to hear you figured it out.

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