Hi,
What we need:
We need to upgrade client’s file upload limit based on subscription each he paid/upgrade.
We have setup
IPN log (letest 2 entries) from paypal-ipn.log:
PHP v5.2.17 :: WordPress® v3.5 :: s2Member® v121213
Memory 37.20 MB :: Real Memory 37.50 MB :: Peak Memory 37.27 MB :: Real Peak Memory 37.50 MB
copyrightwebstamp.com/?s2member_paypal_notify=1
User-Agent:
array (
'test_ipn' => '1',
'payment_type' => 'instant',
'payment_date' => '22:15:20 Jan 02, 2013 PST',
'payment_status' => 'Completed',
'address_status' => 'confirmed',
'payer_status' => 'unverified',
'first_name' => 'John',
'last_name' => 'Smith',
'payer_email' => 'buyer@paypalsandbox.com',
'payer_id' => 'TESTBUYERID01',
'address_name' => 'John Smith',
'address_country' => 'United States',
'address_country_code' => 'US',
'address_zip' => '95131',
'address_state' => 'CA',
'address_city' => 'San Jose',
'address_street' => '123, any street',
'receiver_email' => 'seller@paypalsandbox.com',
'receiver_id' => 'TESTSELLERID1',
'residence_country' => 'US',
'item_name1' => 'something',
'item_number1' => 'AK-1234',
'quantity1' => '1',
'tax' => '2.02',
'mc_currency' => 'USD',
'mc_fee' => '0.44',
'mc_gross_1' => '9.34',
'mc_handling' => '2.06',
'mc_handling1' => '1.67',
'mc_shipping' => '3.02',
'mc_shipping1' => '1.02',
'txn_type' => 'cart',
'txn_id' => '2013615',
'notify_version' => '2.4',
'custom' => 'xyz123',
'invoice' => 'abc1234',
'charset' => 'windows-1252',
'verify_sign' => 'AFcWxV21C7fd0v3bYYYRCpSSRl31AFdxgZS4L.TsNUmKt0A05a8bg2F8',
's2member_log' =>
array (
0 => 'IPN received on: Thu Jan 3, 2013 6:56:41 am 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',
)
PHP v5.2.17 :: WordPress® v3.5 :: s2Member® v121213
Memory 37.20 MB :: Real Memory 37.50 MB :: Peak Memory 37.27 MB :: Real Peak Memory 37.50 MB
copyrightwebstamp.com/?s2member_paypal_notify=1
User-Agent:
array (
'test_ipn' => '1',
'payment_type' => 'instant',
'payment_date' => '22:15:20 Jan 02, 2013 PST',
'payment_status' => 'Completed',
'address_status' => 'confirmed',
'payer_status' => 'unverified',
'first_name' => 'Najeeb',
'last_name' => 'Ahmad',
'payer_email' => 'buyer@paypalsandbox.com',
'payer_id' => 'TESTBUYERID01',
'address_name' => 'John Smith',
'address_country' => 'United States',
'address_country_code' => 'US',
'address_zip' => '95131',
'address_state' => 'CA',
'address_city' => 'San Jose',
'address_street' => '123, any street',
'receiver_email' => 'seller@paypalsandbox.com',
'receiver_id' => 'TESTSELLERID1',
'residence_country' => 'US',
'item_name1' => 'something',
'item_number1' => 'AK-1234',
'quantity1' => '1',
'tax' => '2.02',
'mc_currency' => 'USD',
'mc_fee' => '0.44',
'mc_gross_1' => '9.34',
'mc_handling' => '2.06',
'mc_handling1' => '1.67',
'mc_shipping' => '3.02',
'mc_shipping1' => '1.02',
'txn_type' => 'cart',
'txn_id' => '2013615',
'notify_version' => '2.4',
'custom' => 'xyz123',
'invoice' => 'abc1234',
'charset' => 'windows-1252',
'verify_sign' => 'An5ns1Kso7MWUdW4ErQKJJJ4qi4-A4Eb6GJ4PmSBnuI5VzzhGoPGN0aX',
's2member_log' =>
array (
0 => 'IPN received on: Thu Jan 3, 2013 7:52:06 am 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',
)
API/Notifications Settings
Under Payment Notifications we have set following URL
http://copyrightwebstamp.com/upgrade-subscription.php?var=%%first_name%%
Script under upgrade-subscription.php file is:
<?php
mail('ceo@najeebmedia.com', 'Hello man','Hellow man '.$_REQUEST['var']);
?>
Problem
Our script is not running whenever payment is made. You are requested to help us out to fix this issue.