PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Unable to verify $_POST vars - Paypal

s2Member Plugin. A Membership plugin for WordPress®.

Unable to verify $_POST vars - Paypal

Postby banta » August 9th, 2011, 11:34 am

Hi,

I'm trying to evaluate S2Member for use in a project I am working on. I must say, it's very impressive - a credit to your hard work.

I have setup all of my PayPal options (Sandbox), including IPN, PDT & Auto-Return information - I am able to successfully submit payment in the sandbox, however on return to my test site, I get the "Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility." message.

I've checked the config details several times. I have even setup a new business user account in the Paypal sandbox and tried using it's API credentials, I also tried creating new Paypal buttons (via S2Member). The payment is processed in the sandbox, the Paypal confirmation emails are being sent within the sandbox, but I still get the "unable to verify $_POST vars" error. I have attached the logs generated below.

This lead me to believe that I may have a server configuration issue. I'm on shared linux-based hosting and tried the various steps outlined on this forum.

cURL is enabled (I have no control over this), but the cURL tests are failing for both http and https (just a white page). The fopen test over https works fine (OpenSSL is enabled).

I'm at a loss as to what could be wrong. I have searched through these forums and tried every solution I could find, but to no avail.

Can anyone point me in the right direction? S2Member looks like it can do everything I want and I'd like to be sure I can use it before I commit to buying the Pro version.

Thank you,
Denis



The following logs are generated:
paypal-ipn.log
Code: Select all
WordPress® v3.2.1 :: s2Member® v110731
test-site.com/?s2member_paypal_notify=1
User-Agent:
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.primothemes.com/forums/viewtopic.php?f=36&t=2636` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_notify\' => \'1\',
  \'txn_type\' => \'subscr_signup\',
  \'subscr_id\' => \'I-9D4CNP54CUVW\',
  \'last_name\' => \'User\',
  \'option_selection1\' => \'test-site.com\',
  \'option_selection2\' => \'109.76.24.55\',
  \'residence_country\' => \'GB\',
  \'mc_currency\' => \'EUR\',
  \'item_name\' => \'Associate Membership\',
  \'business\' => \'test-email-biz@test-site.com\',
  \'recurring\' => \'1\',
  \'verify_sign\' => \'AOafYYndZ3qNXtzcozbfyCRn6UfIAxi7GT03kYKKTNFcAT7QDVjKPNap\',
  \'payer_status\' => \'verified\',
  \'test_ipn\' => \'1\',
  \'payer_email\' => \'test-customer@here.com\',
  \'first_name\' => \'Test\',
  \'receiver_email\' => \'test-email-biz@test-site.com\',
  \'payer_id\' => \'P7N8TAK53HSWA\',
  \'option_name1\' => \'Originating Domain\',
  \'invoice\' => \'4e4157c7030e3~109.76.24.55\',
  \'option_name2\' => \'Customer IP Address\',
  \'reattempt\' => \'1\',
  \'item_number\' => \'1\',
  \'subscr_date\' => \'08:50:22 Aug 09, 2011 PDT\',
  \'custom\' => \'test-site.com\',
  \'charset\' => \'windows-1252\',
  \'notify_version\' => \'3.2\',
  \'period3\' => \'1 Y\',
  \'mc_amount3\' => \'100.00\',
  \'ipn_track_id\' => \'gZwwrFjDM52oeE3Eay3wAQ\',
)',
  ),
)

WordPress® v3.2.1 :: s2Member® v110731
test-site.com/?s2member_paypal_notify=1
User-Agent:
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.primothemes.com/forums/viewtopic.php?f=36&t=2636` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_notify\' => \'1\',
  \'mc_gross\' => \'100.00\',
  \'invoice\' => \'4e4157c7030e3~109.76.24.55\',
  \'settle_amount\' => \'63.86\',
  \'protection_eligibility\' => \'Ineligible\',
  \'payer_id\' => \'P7N8TAK53HSWA\',
  \'payment_date\' => \'08:50:27 Aug 09, 2011 PDT\',
  \'payment_status\' => \'Completed\',
  \'charset\' => \'windows-1252\',
  \'first_name\' => \'Test\',
  \'option_selection1\' => \'test-site.com\',
  \'option_selection2\' => \'109.76.24.55\',
  \'mc_fee\' => \'3.75\',
  \'exchange_rate\' => \'0.663574\',
  \'notify_version\' => \'3.2\',
  \'subscr_id\' => \'I-9D4CNP54CUVW\',
  \'settle_currency\' => \'GBP\',
  \'custom\' => \'test-site.com\',
  \'payer_status\' => \'verified\',
  \'business\' => \'test-email-biz@test-site.com\',
  \'verify_sign\' => \'ASNbM6fp2fsRY4f1xVxXa-ca6RyHAqwfuPlIWRtJgxqq.WkUzcbl2pRr\',
  \'payer_email\' => \'test-customer@here.com\',
  \'option_name1\' => \'Originating Domain\',
  \'option_name2\' => \'Customer IP Address\',
  \'txn_id\' => \'25L75027BX209745P\',
  \'payment_type\' => \'instant\',
  \'last_name\' => \'User\',
  \'receiver_email\' => \'test-email-biz@test-site.com\',
  \'payment_fee\' => \'\',
  \'receiver_id\' => \'VQXPEY5QCHTBC\',
  \'txn_type\' => \'subscr_payment\',
  \'item_name\' => \'Associate Membership\',
  \'mc_currency\' => \'EUR\',
  \'item_number\' => \'1\',
  \'residence_country\' => \'GB\',
  \'test_ipn\' => \'1\',
  \'transaction_subject\' => \'\',
  \'payment_gross\' => \'\',
  \'ipn_track_id\' => \'u7CC23dvb5g6GewEWdz1QQ\',
)',
  ),
)



paypal-rtn.log
Code: Select all
WordPress® v3.2.1 :: s2Member® v110731
test-site.com/?s2member_paypal_return=1&s2member_paypal_return_tra=fnIyOnQ4aUpCRWtuZGpBYldFZnl3UDdjN3M0S051OE8zT2l2fHqsKYtzQsiMnXv7MEPrZ-mcee2L7BJHSepam1aAqHj80X23DLaGHk-FOfvewXY9pkqQsDaxkjg3ieOip5BOlvtljsONxkW1mDZAP2uAhKl3GYWahd4H9CWe55CVJKA97_pFwr2F9akNCwE5JDZdmD-0poZzhH1yPiYL5gTmznj3VKWiMsmlHlgODb7R-fSszkZwJx-jWtTD7l8BlMHB9jggvniqH5Q-lRq0YOKEV2y3HHnpvuemTbs8o_-BuTFBFSs9mgW9E6YovLdWFJXBCE3YzwcOVuFT9MtL-ja6ivP24h6wuTB5sEWOqgDvoGo6UMp3gsVgPtAzZbXbTZoLnDle90d_TZWjnqKSL6eWSMcsbyFdUvNtuqeqJu6M4cwRxA%7E%7E&tx=25L75027BX209745P&st=Completed&amt=100.00&cc=EUR&cm=etpi%2edenishogan%2eie&item_number=&sig=Tqd%2f%2fX%2bRw%2bx7gLDaraZLjcCUTM2Gj2tpYzCqsW58M6F6XtDrG%2fAZNOQdIVQ54CYmdCpQ4kasdPKJ6i2uZzQwWKxpoeOGZ8n%2fXLN%2fbRsw6Dys%2b0WGFVoaKiQN1OgyuOr0tz57Jf%2bSb7K7g5BEi%2f2KrdmmWWoRmpA2qxoua87avOQ%3d
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
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.primothemes.com/forums/viewtopic.php?f=36&t=2636` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_return\' => \'1\',
  \'s2member_paypal_return_tra\' => \'fnIyOnQ4aUpCRWtuZGpBYldFZnl3UDdjN3M0S051OE8zT2l2fHqsKYtzQsiMnXv7MEPrZ-mcee2L7BJHSepam1aAqHj80X23DLaGHk-FOfvewXY9pkqQsDaxkjg3ieOip5BOlvtljsONxkW1mDZAP2uAhKl3GYWahd4H9CWe55CVJKA97_pFwr2F9akNCwE5JDZdmD-0poZzhH1yPiYL5gTmznj3VKWiMsmlHlgODb7R-fSszkZwJx-jWtTD7l8BlMHB9jggvniqH5Q-lRq0YOKEV2y3HHnpvuemTbs8o_-BuTFBFSs9mgW9E6YovLdWFJXBCE3YzwcOVuFT9MtL-ja6ivP24h6wuTB5sEWOqgDvoGo6UMp3gsVgPtAzZbXbTZoLnDle90d_TZWjnqKSL6eWSMcsbyFdUvNtuqeqJu6M4cwRxA~~\',
  \'tx\' => \'25L75027BX209745P\',
  \'st\' => \'Completed\',
  \'amt\' => \'100.00\',
  \'cc\' => \'EUR\',
  \'cm\' => \'test-site.com\',
  \'item_number\' => \'\',
  \'sig\' => \'Tqd//X+Rw+x7gLDaraZLjcCUTM2Gj2tpYzCqsW58M6F6XtDrG/AZNOQdIVQ54CYmdCpQ4kasdPKJ6i2uZzQwWKxpoeOGZ8n/XLN/bRsw6Dys+0WGFVoaKiQN1OgyuOr0tz57Jf+Sb7K7g5BEi/2KrdmmWWoRmpA2qxoua87avOQ=\',
)',
    5 => 'Redirecting Customer to the Home Page, due to an error that occurred.',
  ),
  's2member_paypal_return_tra' => 'fnIyOnQ4aUpCRWtuZGpBYldFZnl3UDdjN3M0S051OE8zT2l2fHqsKYtzQsiMnXv7MEPrZ-mcee2L7BJHSepam1aAqHj80X23DLaGHk-FOfvewXY9pkqQsDaxkjg3ieOip5BOlvtljsONxkW1mDZAP2uAhKl3GYWahd4H9CWe55CVJKA97_pFwr2F9akNCwE5JDZdmD-0poZzhH1yPiYL5gTmznj3VKWiMsmlHlgODb7R-fSszkZwJx-jWtTD7l8BlMHB9jggvniqH5Q-lRq0YOKEV2y3HHnpvuemTbs8o_-BuTFBFSs9mgW9E6YovLdWFJXBCE3YzwcOVuFT9MtL-ja6ivP24h6wuTB5sEWOqgDvoGo6UMp3gsVgPtAzZbXbTZoLnDle90d_TZWjnqKSL6eWSMcsbyFdUvNtuqeqJu6M4cwRxA~~',
)

User avatar
banta
Registered User
Registered User
 
Posts: 10
Joined: August 8, 2011

Re: Unable to verify $_POST vars - Paypal

Postby Cristián Lávaque » August 9th, 2011, 1:40 pm

Hi Denis.

I suggest you post in the Ideal Server Configuration thread, since it's relevant and Jason will get a notification because he's posted in it. viewtopic.php?f=36&t=2636

And I'd also consider moving to a server that doesn't have the problem this one is giving you.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Unable to verify $_POST vars - Paypal

Postby banta » August 9th, 2011, 7:56 pm

Thanks Cristián - I managed to get this working on another hosting account.

Denis
User avatar
banta
Registered User
Registered User
 
Posts: 10
Joined: August 8, 2011

Re: Unable to verify $_POST vars - Paypal

Postby Cristián Lávaque » August 10th, 2011, 10:58 am

Great. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Unable to verify $_POST vars - Paypal

Postby kshade » August 15th, 2011, 9:03 pm

Edit: Disregard that post, we suck. Boss forgot the redirect token. Doh!

Hi,

sorry for hijacking this thread, but we're having the exact same problem on a dedicated Linux server. CURL is not installed but fopen is enabled and the openssl module is loaded. The test file from the config thread reports no problems either, but after the Paypal transaction users don't get redirected properly and get the "ERROR: Unable to verify $_POST vars." error.
User avatar
kshade
Registered User
Registered User
 
Posts: 1
Joined: August 15, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron