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™

Getting "Unable to verify &_POST vars" Error

s2Member Plugin. A Membership plugin for WordPress®.

Getting "Unable to verify &_POST vars" Error

Postby holleydc » December 6th, 2011, 6:16 pm

Hello! I have installed s2Member v111105 in WordPress v3.2.1. My host is Hostgator (running openSSL and PHP v5.2.17). I am using OptimizePress v1.45 theme. I do have a private SSL certificate installed on the domain, with forced SSL on several pages (but NONE of those pages are involved in this PayPal process).

My domain is: http://myhealthbydesign.com. The "Member Options" page is named "Getting Started" only site. The PayPal button on that page sells a $0.01 sale for testing purposes (sandbox NOT enabled).

All settings in s2Member (including PayPal Options) and in PayPal have been followed exactly as outlined in the instructions and videos (including one OptimizePress video about incorporating s2Member into it).

Everything works fine through the PayPal payment process up to the point where PayPal redirects back to my website (I am using the correct return url as outlined in s2Member). All steps are processed (including payment and emails sent). But the redirect page ends up as an error message.
Image

My paypal-ipn.log shows:
Code: Select all
PHP v5.2.17 :: WordPress® v3.2.1 :: s2Member® v111105
Memory 18.41 MB :: Real Memory 19.50 MB :: Peak Memory 19.14 MB :: Real Peak Memory 19.50 MB
myhealthbydesign.com/?s2member_paypal_notify=1
User-Agent:
array (
  'mc_gross' => '0.01',
  'invoice' => '**valid invoice number**',
  'protection_eligibility' => 'Ineligible',
  'payer_id' => '**encoded payer id**',
  'tax' => '0.00',
  'payment_date' => '14:38:56 Dec 06, 2011 PST',
  'payment_status' => 'Pending',
  'charset' => 'windows-1252',
  'first_name' => 'xxxx',
  'option_selection1' => '1',
  'option_selection2' => 'xx.xx.xx.xx',
  'notify_version' => '3.4',
  'custom' => 'myhealthbydesign.com',
  'payer_status' => 'verified',
  'business' => 'drholley@yorkvillewellness.net',
  'quantity' => '1',
  'verify_sign' => '**encoded string**',
  'payer_email' => '**buyer email**',
  'option_name1' => 'Referencing Customer ID',
  'option_name2' => 'Customer IP Address',
  'txn_id' => '7T3642741W7368742',
  'payment_type' => 'echeck',
  'payer_business_name' => 'xxxx',
  'last_name' => 'xxxx',
  'receiver_email' => 'drholley@yorkvillewellness.net',
  'receiver_id' => '**encoded string**',
  'pending_reason' => 'echeck',
  'txn_type' => 'web_accept',
  'item_name' => 'Bronze Member / test sale.',
  'mc_currency' => 'USD',
  'item_number' => '1',
  'residence_country' => 'US',
  'handling_amount' => '0.00',
  'transaction_subject' => 'myhealthbydesign.com',
  'payment_gross' => '0.01',
  'shipping' => '0.00',
  'ipn_track_id' => 'SqNWsQ1yyhj1wOmPT-76gA',
  's2member_log' =>
  array (
    0 => 'IPN received on: Tue Dec 6, 2011 10:39:00 pm UTC',
    1 => 's2Member POST vars verified through a POST back to PayPal®.',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `web_accept|subscr_signup` ).',
  ),
  'subscr_gateway' => 'paypal',
  'subscr_id' => '**encoded string**',
  'eotper' => NULL,
  'ccaps' => NULL,
  'level' => '1',
  'ip' => 'xx.xx.xx.xx',
  'period1' => '0 D',
  'mc_amount1' => '0.00',
  'period3' => '1 L',
  'mc_amount3' => '0.01',
  'initial_term' => '0 D',
  'initial' => '0.01',
  'regular' => '0.01',
  'regular_term' => '1 L',
  'recurring' => '0',
)


My paypal-rtn.log shows:
Code: Select all
PHP v5.2.17 :: WordPress® v3.2.1 :: s2Member® v111105
Memory 15.60 MB :: Real Memory 15.75 MB :: Peak Memory 15.69 MB :: Real Peak Memory 15.75 MB
myhealthbydesign.com/?s2member_paypal_return=1&s2member_paypal_return_tra=**encoded string**&st=Pending&amt=0.01&cc=USD&cm=myhealthbydesign%2ecom&item_number=1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7
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\' => \'**encoded string**\',
  \'tx\' => \'7T3642741W7368742\',
  \'st\' => \'Pending\',
  \'amt\' => \'0.01\',
  \'cc\' => \'USD\',
  \'cm\' => \'myhealthbydesign.com\',
  \'item_number\' => \'1\',
)',
    5 => 'Redirecting Customer to the Home Page, due to an error that occurred.',
  ),
  's2member_paypal_return_tra' => '**encoded string**',
)


I have searched this forum and watched too many videos. A few posts refer to this error, but I haven't seen anything that fixes it for me. I did run the curl and open tests outlined in another post. Everything returned fine with those.

What am I missing? Any help would be appreciated!!
User avatar
holleydc
Registered User
Registered User
 
Posts: 4
Joined: December 6, 2011

Re: Getting "Unable to verify &_POST vars" Error

Postby Bruce C » December 6th, 2011, 6:27 pm

It looks like the problem is that the transaction is going through as an echeck.

'pending_reason' => 'echeck'

I think s2Member probably checks for different values ( doesn't accept echecks )
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Getting "Unable to verify &_POST vars" Error

Postby holleydc » December 6th, 2011, 6:40 pm

Thanks Bruce, but it happens with a credit/debit card as well. So that's not the reason.

PayPal and s2Member are have communication issues at this step, and I can't figure out why!
User avatar
holleydc
Registered User
Registered User
 
Posts: 4
Joined: December 6, 2011

Re: Getting "Unable to verify &_POST vars" Error

Postby Bruce C » December 6th, 2011, 9:19 pm

OK, can you tell me what version of WordPress and s2Member you're using, and if you have s2Member Pro.

Also, what version of PHP you have.

Make sure you have cURL installed and enabled also in your php.ini file. Maybe s2Member is having trouble sending and receiving the PayPal response to validate.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Getting "Unable to verify &_POST vars" Error

Postby holleydc » December 7th, 2011, 5:57 pm

Now I'm even more confused. I setup a PayPal Sandbox to test this installation. Everything works just FINE in Sandbox.

However, when I setup the actual PayPal system (to actually run charges) I keep getting the error about being unable to verify $_POST vars.

The Getting Started page has a Buy Now button on it. That is currently the Sandbox API setup if anyone would like to try it.

Anybody have any insight here?
User avatar
holleydc
Registered User
Registered User
 
Posts: 4
Joined: December 6, 2011

Re: Getting "Unable to verify &_POST vars" Error

Postby Bruce C » December 7th, 2011, 6:03 pm

You made sure to uncheck the sandbox testing button in the first tab in Dashboard->s2Member->PayPal® Options
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Getting "Unable to verify &_POST vars" Error

Postby Bruce C » December 7th, 2011, 6:06 pm

Yeah it's weird. I don't know what's going wrong. Maybe you should send in a ticket to http://www.s2member.com/contact/
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Getting "Unable to verify &_POST vars" Error

Postby holleydc » December 7th, 2011, 6:21 pm

RESOLVED:

I deleted my PayPal API signature and requested a new one. Once I entered the new key into s2Member - voila!!

Thanks Bruce! An thank you s2Member. This is a fantastic plugin!!
User avatar
holleydc
Registered User
Registered User
 
Posts: 4
Joined: December 6, 2011

Re: Getting "Unable to verify &_POST vars" Error

Postby Bruce C » December 7th, 2011, 6:24 pm

Great!
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Getting "Unable to verify &_POST vars" Error

Postby Cristián Lávaque » December 9th, 2011, 2:12 am

Great Holley! Thanks for the kudos! :)
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


Return to s2Member Plugin

Who is online

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

cron