I am having the same problem. I’m using PayPal Pro Forms with custom=”www.[mydomain].com” in the form schortcode. I am getting the Unable to verify $_SERVER[“HTTP_HOST”] error in my IPN log when issuing a refund through PayPal and it will not downgrade the user even though I have set all the settings to do so. I have also checked that the PayPal IPN address is
http://www.[mydomain].com/?s2member_paypal_notify=1
(with the www). We can manually downgrade users, but I would still like a resolution.
Here is my IPN log:
LOG ENTRY: Fri May 17th, 2013 @ precisely 2:38 pm UTC
PHP v5.2.17 :: WordPress® v3.5.1 :: s2Member® v130513 :: s2Member® Pro v130513
Memory 29.63 MB :: Real Memory 29.75 MB :: Peak Memory 29.72 MB :: Real Peak Memory 29.75 MB
www.mydomain.com/?s2member_paypal_notify=1
User-Agent:
array (
'mc_gross' => '0.01',
'protection_eligibility' => 'Ineligible',
'payer_id' => 'XXXXEKNRCHLEY',
'tax' => '0.00',
'payment_date' => '07:38:20 May 17, 2013 PDT',
'payment_status' => 'Completed',
'charset' => 'windows-1252',
'first_name' => 'Name',
'mc_fee' => '0.01',
'notify_version' => '3.7',
'custom' => '',
'payer_status' => 'unverified',
'business' => 'myemail@gmail.com',
'quantity' => '1',
'verify_sign' => 'XXXXsxE7AMEBXH6XGnoaYeZvMyu3AUjrjdVXL0QiZlRtsa4--NmXXXXX',
'payer_email' => 'customeremail@gmail.com',
'txn_id' => '88M6XXXXSG006210C',
'payment_type' => 'instant',
'last_name' => 'Waite',
'receiver_email' => 'myemail@gmail.com',
'payment_fee' => '0.01',
'receiver_id' => 'SWDQXXxxxxx7S',
'txn_type' => 'web_accept',
'item_name' => '',
'mc_currency' => 'USD',
'item_number' => '',
'residence_country' => 'US',
'receipt_id' => '1049-xxxx-0488-xxxx',
'handling_amount' => '0.00',
'transaction_subject' => '',
'payment_gross' => '0.01',
'shipping' => '0.00',
'ipn_track_id' => '79xxxxxxe3f2',
's2member_log' =>
array (
0 => 'IPN received on: Fri May 17, 2013 2:38:23 pm UTC',
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',
)