Page 1 of 1

PayPal Error: Unable to verify POST vars

PostPosted: February 16th, 2011, 4:26 pm
by kittykatmeowmeow
I'm about to pull out my hair. I have read the following threads and am still getting this Unable to perify POST vars error and not getting a registration link:
viewtopic.php?f=4&t=1067&p=6617&hilit=error+with+paypal#p4138

viewtopic.php?f=4&t=1027&p=3957&
hilit=error+with+paypal+unable+to+verify+post+vars#p3957

viewtopic.php?f=4&t=599&p=3060&hilit=fopen+test#p2625

search.php?st=0&sk=t&sd=d&sr=posts&keywords=error+with+paypal&fid[]=4

viewtopic.php?f=4&t=309&p=1585&hilit=instant+payment+notifications+register#p1585

I have checked my PayPal Options in S2Member 100 times and verified all the information was correct on the PayPal website. I also added the cURL code to the bottom on my php.ini file (even though I am hosted with Bluehost). IPN is turned on, PDT is on with the ?s2member_paypal_return=1 added to the end of the url, the Identity Token matches (I copied and pasted it 4 different times).

Here is my goal:
I have two paypal buttons: One of them is the shortcode generated from s2member the other one is generated through PayPal using the Buy Now button. I followed this thread to create it:http://www.primothemes.com/forums/viewtopic.php?f=4&t=309&p=1585&hilit=instant+payment+notifications+register#p1585

I wanted to be able to offer customers the option to purchase content if they don't have a PayPal account, hence the Buy Now button generated from the PayPal account. I am out of ideas! Is this happening, because of the Buy Now button that was created through PayPal? How do I get the registration URL in there to people that purchase it through the Buy Now button??? :x

Re: PayPal Error: Unable to verify POST vars

PostPosted: February 16th, 2011, 4:35 pm
by kittykatmeowmeow
PS- The PayPal Button that I generated through s2Member is working and once paid, the customer is directed to the registration URL. The Buy Now Button I created via Paypal.com (for people that do not have a paypal account) is NOT redirecting the person to the registration URL

Re: PayPal Error: Unable to verify POST vars

PostPosted: February 16th, 2011, 6:16 pm
by kittykatmeowmeow
UPDATE:
The only time the ERROR: Unable to Verify POST vars message pops up, is when a non-paypal customer is paying through the button that is generated through s2member. What is going on? Below is a log:
paypal-ipn.log
example.com/?s2member_paypal_notify=1
array (
'mc_gross' => '0.01',
'protection_eligibility' => 'Ineligible',
'payer_id' => 'UE688G4ZP78XU',
'tax' => '0.00',
'payment_date' => '15:14:46 Feb 16, 2011 PST',
'payment_status' => 'Completed',
'charset' => 'windows-1252',
'first_name' => 'first name',
'mc_fee' => '0.01',
'notify_version' => '3.0',
'custom' => 'example.com',
'payer_status' => 'unverified',
'business' => 'info@example.com',
'quantity' => '1',
'verify_sign' => 'AB8uKJ-cgis5XVZJfu8yXdO6dhrpAY3qbMvC100CLUybMQw2-z0Kz5nO',
'payer_email' => 'name@payeremail.com',
'txn_id' => '5XE84845UX8066423',
'payment_type' => 'instant',
'last_name' => 'last Name',
'receiver_email' => 'info@example.com',
'payment_fee' => '0.01',
'receiver_id' => 'GUB6H9K9FSDBY',
'txn_type' => 'web_accept',
'item_name' => 'Content',
'mc_currency' => 'USD',
'item_number' => '1::1 Y',
'residence_country' => 'US',
'receipt_id' => '5218-4060-3238-7348',
'handling_amount' => '0.00',
'transaction_subject' => 'example.com',
'payment_gross' => '0.01',
'shipping' => '0.00',
's2member_log' =>
array (
0 => 'IPN received on: Wed Feb 16, 2011 11:15:16 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).',
4 => 's2Member txn_type identified as (web_accept|subscr_signup) w/o update vars.',
5 => 'Signup Confirmation Email sent to: "Payer Name" <name@payeremail.com>.',
6 => 'Creating an IPN response for `subscr_payment`. This will go into a Transient Queue for s2Member; and be processed during registration.',
),
'subscr_id' => '5XE84845UX8066423',
'eotper' => '1 Y',
'ccaps' => '',
'level' => '1',
'period3' => '1 Y',
'mc_amount3' => '0.01',
'initial_term' => '0 D',
'initial' => '0.01',
'regular' => '0.01',
'regular_term' => '1 Y',
'recurring' => '0',
)

paypal-rtn.log

example.com/?s2member_paypal_return=1
array (
's2member_log' =>
array (
0 => 'Unable to verify POST vars. This is most likely related to an invalid PayPal® configuration. Please check: s2Member -> PayPal® Options.',
1 => 'If you\'re absolutely SURE that your PayPal® 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 to PayPal® 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. 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 => 'array (
\'s2member_paypal_return\' => \'1\',
\'CONTEXT\' => \'X3-7SZn2ExXucINxlliZ_05NdFsrIIpaV9TcRYNLL_GiOwm9XgEZzWKQeV0\',
\'myAllTextSubmitID\' => \'\',
\'cmd\' => \'_flow\',
\'merchant_return_link\' => \'click here\',
\'form_charset\' => \'UTF-8\',
)',
4 => 'Redirecting Customer to the Login Page, due to an error that occurred.',
),
)

Re: PayPal Error: Unable to verify POST vars

PostPosted: February 17th, 2011, 5:48 am
by Monroe_
Hi - What did you change to have the s2 member button work. I, as well as many other people it seems, am having the same error - "unable to verify Post Vars'
I've been through the other threads like you , rechecked all the settings, checked the server configurations which are all consistent with how it whould be set up to work... but still the problem.

What did you do that made the difference ? - you'll be helping a lot of people.

Thanks

Matt

Re: PayPal Error: Unable to verify POST vars

PostPosted: February 17th, 2011, 7:36 pm
by kittykatmeowmeow
I haven't found a fix for this problem yet. I still have the same problem:

People who are trying to purchase content without a PayPal account, but are using the PayPal button as a PayPal Guest, are not being redirected to the registration site, OR receiving the confirmation email from S2Member. They get the fabulous Unable to verify Post vars. I have a feeling the unable to verify post vars is pertaining to the database in which S2Member is pulling information from. Somehow, it is not communicating with PayPal; hence the error message.

I am having to MANUALLY enter in S2Member users that purchase the content. I can't be watching paypal all day to see when people are purchasing content, that's what this plugin is supposed to do! Redirect and take care of the back end stuff. If S2Member Pro does not have this problem, I will surely upgrade; however I need some jurisdiction and confirmation that this error can be fixed.

I put out a support ticket to my host and paypal; the technicians are saying it is nothing on their end, that I need to contact the developer of the plugin. Well, here I am, contacting the developer :) Please help!

:D

Re: PayPal Error: Unable to verify POST vars

PostPosted: February 24th, 2011, 11:01 pm
by Cristián Lávaque
Couple of questions:

Did you look at code that gets generated for the button in your post and see any difference with another one that works properly?

In your PayPal settings, did you enable the option to allow those without a PayPal account to purchase from you?
PayPal -> Profile -> Website Payment Preferences -> PayPal Account Optional

Re: PayPal Error: Unable to verify POST vars

PostPosted: February 25th, 2011, 2:13 pm
by Cristián Lávaque
Have you read this thread?

viewtopic.php?f=4&t=1067

I just found it.

Re: PayPal Error: Unable to verify POST vars

PostPosted: February 25th, 2011, 2:36 pm
by itsalaska
also, be sure to check that it's going TO paypal from the same subdomain as the ipn is set too.

for instance, i've gotten that error before when sending from example.com but paypal was set to send information to www.example.com

it took FOREVER to figure that one out

Re: PayPal Error: Unable to verify POST vars

PostPosted: March 1st, 2011, 3:54 pm
by kittykatmeowmeow
I fixed it. The only way that it works is if I generate a PayPal button through PayPal, not the s2member button generator. For some reason, when I would generate the button through the s2member PayPal Button options it would give me that error message. NOW, it doesn't!

Re: PayPal Error: Unable to verify POST vars

PostPosted: March 1st, 2011, 5:14 pm
by Cristián Lávaque
Awesome! Thanks for sharing that! :)