latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Notification API Problem

Home Forums Community Forum Notification API Problem

This topic contains 13 replies, has 5 voices. Last updated by  Cristián Lávaque 4 years, 10 months ago.

Topic Author Topic
Posted: Friday Feb 10th, 2012 at 10:56 am #4739

Well, never thought this one would fail, but it did. I use a form to keep track of payment information, and I’ve configured a ‘Specific Post/Page ~ Sale Notification URLs’ to carry some data and initiate that script

http://example.com/wp-content/themes/Wanda/s2member.php?tid=%%txn_id%%&type=%%cv1%%&current_eid=%%cv4%%’

Problem is, I test it directly like this ‘http://example.com/wp-content/themes/Wanda/s2member.php?tid=12345&type=event&current_eid=129’. And it Works (saw the change in the database, confirmed twice), so the script is fine. And I got the email with the correct information.

Unfortunately, in all my 3 attempts, the Notification API didn’t fire off.

I’m currently using the single site license (which is installed on another site) and for testing on this site. This is the only culprit I can think of so far. If that’s the case, let me know, and I’ll upgrade to the multisite license.

I also found something suspicious in the Alipay IPN Log (that my Alipay configuration may not be correct), but it only showed up once, and I tested this for many times.

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 40.09 MB :: Real Memory 40.25 MB :: Peak Memory 40.18 MB :: Real Peak Memory 40.25 MB
wanda.centilin.com/
User-Agent: Mozilla/4.0
array (
  's2member_log' => 
  array (
    0 => 'Unable to verify POST vars. This is most likely related to an invalid AliPay® configuration. Please check: s2Member -> AliPay® Options.',
    1 => 'If you're absolutely SURE that your AliPay® 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 AliPay® 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 (
  'discount' => '0.00',
  'extra_common_param' => 'wanda.centilin.com|新春联谊会|2|0.01元/人',
  'payment_type' => '1',
  'subject' => 'wanda.centilin.com',
  'trade_no' => '2012021066547394',
  'buyer_email' => 'info@centilin.com',
  'gmt_create' => '2012-02-10 15:04:16',
  'notify_type' => 'trade_status_sync',
  'quantity' => '1',
  'out_trade_no' => '4f34c15b552a9~sp:1446:43800~1~120.36.100.48',
  'seller_id' => '2088501820003753',
  'notify_time' => '2012-02-10 15:04:24',
  'body' => '新春联谊会|2',
  'trade_status' => 'TRADE_SUCCESS',
  'is_total_fee_adjust' => 'N',
  'total_fee' => '0.02',
  'gmt_payment' => '2012-02-10 15:04:24',
  'seller_email' => 'zling@centilin.com',
  'price' => '0.02',
  'buyer_id' => '2088701618471944',
  'notify_id' => '121c4f5d93884a71c87e483c86a1353109',
  'use_coupon' => 'N',
  'sign_type' => 'MD5',
  'sign' => 'f35a73ef12c7a6abb6a2bf5841af1ca4',
)',
  ),
)

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 40.37 MB :: Real Memory 40.50 MB :: Peak Memory 40.46 MB :: Real Peak Memory 40.50 MB
wanda.centilin.com/
User-Agent: Mozilla/4.0
array (
  'body' => '新春联谊会|2',
  'buyer_email' => 'info@centilin.com',
  'buyer_id' => '2088701618471944',
  'discount' => '0.00',
  'extra_common_param' => 'wanda.centilin.com|新春联谊会|2|0.01元/人',
  'gmt_create' => '2012-02-10 15:04:16',
  'gmt_payment' => '2012-02-10 15:04:24',
  'is_total_fee_adjust' => 'N',
  'notify_id' => '121c4f5d93884a71c87e483c86a1353109',
  'notify_time' => '2012-02-10 15:08:00',
  'notify_type' => 'trade_status_sync',
  'out_trade_no' => '4f34c15b552a9~sp:1446:43800~1~120.36.100.48',
  'payment_type' => '1',
  'price' => '0.02',
  'quantity' => '1',
  'seller_email' => 'zling@centilin.com',
  'seller_id' => '2088501820003753',
  'sign' => '8111325a4b22c3b1c7cede2e60be7565',
  'sign_type' => 'MD5',
  'subject' => 'wanda.centilin.com',
  'total_fee' => '0.02',
  'trade_no' => '2012021066547394',
  'trade_status' => 'TRADE_SUCCESS',
  'use_coupon' => 'N',
  's2member_log' => 
  array (
    0 => 'IPN received on: Fri Feb 10, 2012 7:08:07 am UTC',
    1 => 's2Member POST vars verified through a POST back to AliPay®.',
    2 => 'AliPay® transaction identified as ( `TRADE_FINISHED|TRADE_SUCCESS` ).',
    3 => 'IPN reformulated. Piping through s2Member's core/standard PayPal® processor as `txn_type` ( `web_accept` ).',
    4 => 'Please check PayPal® IPN logs for further processing details.',
  ),
  'customer_ip' => '120.36.100.48',
  'referencing' => '1',
  'item_number' => 'sp:1446:43800',
  'invoice' => '4f34c15b552a9',
  'last_name' => 'centilin.com',
  'first_name' => 'info',
)

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 40.44 MB :: Real Memory 40.75 MB :: Peak Memory 40.52 MB :: Real Peak Memory 40.75 MB
wanda.centilin.com/
User-Agent: Mozilla/4.0
array (
  'body' => '新春联谊会',
  'buyer_email' => 'info@centilin.com',
  'buyer_id' => '2088701618471944',
  'discount' => '0.00',
  'extra_common_param' => 'wanda.centilin.com|event新春联谊会|2|0.01元/人|125|',
  'gmt_create' => '2012-02-10 23:09:27',
  'gmt_payment' => '2012-02-10 23:09:42',
  'is_total_fee_adjust' => 'N',
  'notify_id' => 'aedbf89e8937519762dc91041444e88e09',
  'notify_time' => '2012-02-10 23:09:42',
  'notify_type' => 'trade_status_sync',
  'out_trade_no' => '4f353311c5090~sp:1446:43800~~120.36.100.48',
  'payment_type' => '1',
  'price' => '0.02',
  'quantity' => '1',
  'seller_email' => 'zling@centilin.com',
  'seller_id' => '2088501820003753',
  'sign' => 'f2090fffed1cbc73b990fb5ca24ba0a2',
  'sign_type' => 'MD5',
  'subject' => 'wanda.centilin.com',
  'total_fee' => '0.02',
  'trade_no' => '2012021073542594',
  'trade_status' => 'TRADE_SUCCESS',
  'use_coupon' => 'N',
  's2member_log' => 
  array (
    0 => 'IPN received on: Fri Feb 10, 2012 3:09:59 pm UTC',
    1 => 's2Member POST vars verified through a POST back to AliPay®.',
    2 => 'AliPay® transaction identified as ( `TRADE_FINISHED|TRADE_SUCCESS` ).',
    3 => 'IPN reformulated. Piping through s2Member's core/standard PayPal® processor as `txn_type` ( `web_accept` ).',
    4 => 'Please check PayPal® IPN logs for further processing details.',
  ),
  'customer_ip' => '120.36.100.48',
  'referencing' => '',
  'item_number' => 'sp:1446:43800',
  'invoice' => '4f353311c5090',
  'last_name' => 'centilin.com',
  'first_name' => 'info',
)

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 40.44 MB :: Real Memory 40.75 MB :: Peak Memory 40.52 MB :: Real Peak Memory 40.75 MB
wanda.centilin.com/
User-Agent: Mozilla/4.0
array (
  'body' => '新春联谊会',
  'buyer_email' => 'info@centilin.com',
  'buyer_id' => '2088701618471944',
  'discount' => '0.00',
  'extra_common_param' => 'wanda.centilin.com|event新春联谊会|2|0.01元/人|129|',
  'gmt_create' => '2012-02-10 23:26:09',
  'gmt_payment' => '2012-02-10 23:26:18',
  'is_total_fee_adjust' => 'N',
  'notify_id' => '7eabc933b1cf4bbc43c6011d401c7aaf09',
  'notify_time' => '2012-02-10 23:26:18',
  'notify_type' => 'trade_status_sync',
  'out_trade_no' => '4f3536ef0dead~sp:1446:43800~~120.36.100.48',
  'payment_type' => '1',
  'price' => '0.02',
  'quantity' => '1',
  'seller_email' => 'zling@centilin.com',
  'seller_id' => '2088501820003753',
  'sign' => 'b1249ffdf911f2d64605aea62d441618',
  'sign_type' => 'MD5',
  'subject' => 'wanda.centilin.com',
  'total_fee' => '0.02',
  'trade_no' => '2012021073720294',
  'trade_status' => 'TRADE_SUCCESS',
  'use_coupon' => 'N',
  's2member_log' => 
  array (
    0 => 'IPN received on: Fri Feb 10, 2012 3:26:27 pm UTC',
    1 => 's2Member POST vars verified through a POST back to AliPay®.',
    2 => 'AliPay® transaction identified as ( `TRADE_FINISHED|TRADE_SUCCESS` ).',
    3 => 'IPN reformulated. Piping through s2Member's core/standard PayPal® processor as `txn_type` ( `web_accept` ).',
    4 => 'Please check PayPal® IPN logs for further processing details.',
  ),
  'customer_ip' => '120.36.100.48',
  'referencing' => '',
  'item_number' => 'sp:1446:43800',
  'invoice' => '4f3536ef0dead',
  'last_name' => 'centilin.com',
  'first_name' => 'info',
)

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 40.44 MB :: Real Memory 40.75 MB :: Peak Memory 40.53 MB :: Real Peak Memory 40.75 MB
wanda.centilin.com/
User-Agent: Mozilla/4.0
array (
  'body' => '新春联谊会',
  'buyer_email' => 'info@centilin.com',
  'buyer_id' => '2088701618471944',
  'discount' => '0.00',
  'extra_common_param' => 'wanda.centilin.com|event新春联谊会|2|0.01元/人|132|',
  'gmt_create' => '2012-02-10 23:38:07',
  'gmt_payment' => '2012-02-10 23:38:16',
  'is_total_fee_adjust' => 'N',
  'notify_id' => '681801a2d7d2ba54da99554329b10ff909',
  'notify_time' => '2012-02-10 23:38:16',
  'notify_type' => 'trade_status_sync',
  'out_trade_no' => '4f3539c8989ed~sp:1446:43800~~120.36.100.48',
  'payment_type' => '1',
  'price' => '0.02',
  'quantity' => '1',
  'seller_email' => 'zling@centilin.com',
  'seller_id' => '2088501820003753',
  'sign' => '27d29950b841b47f997265ce28f0b632',
  'sign_type' => 'MD5',
  'subject' => 'wanda.centilin.com',
  'total_fee' => '0.02',
  'trade_no' => '2012021073845594',
  'trade_status' => 'TRADE_SUCCESS',
  'use_coupon' => 'N',
  's2member_log' => 
  array (
    0 => 'IPN received on: Fri Feb 10, 2012 3:38:29 pm UTC',
    1 => 's2Member POST vars verified through a POST back to AliPay®.',
    2 => 'AliPay® transaction identified as ( `TRADE_FINISHED|TRADE_SUCCESS` ).',
    3 => 'IPN reformulated. Piping through s2Member's core/standard PayPal® processor as `txn_type` ( `web_accept` ).',
    4 => 'Please check PayPal® IPN logs for further processing details.',
  ),
  'customer_ip' => '120.36.100.48',
  'referencing' => '',
  'item_number' => 'sp:1446:43800',
  'invoice' => '4f3539c8989ed',
  'last_name' => 'centilin.com',
  'first_name' => 'info',
)

Just in case you might need it, this is how I wrote the shortcode (and yes, all of these variables are tested and available. Well, all except the $uid):
[ s2Member-Pro-AliPay-Button sp=”1″ ids=”1446″ exp=”43800″ desc=”‘ . $event . ‘” custom=”example.com|event|’ . $event . ‘|’ . $num . ‘|’ . $amount . ‘|’ . $eid . ‘|’ . $uid . ‘” ra=”‘ . $amount_no * $num . ‘” image=”default” output=”anchor” / ]

  • This topic was modified 4 years, 11 months ago by  zhiling zou.

List Of Topic Replies

Viewing 13 replies - 1 through 13 (of 13 total)
Author Replies
Author Replies
Posted: Tuesday Feb 14th, 2012 at 1:03 am #5007

Anyone? I’ve been waiting on this for 4 days…

Posted: Tuesday Feb 14th, 2012 at 6:56 pm #5093

Very sorry about the delay.

I looked at your log entries and saw the error you mention, but there are several successful ones after that. Next time you have that error again, please review you AliPay options. [hilite path]WP Admin -> s2Member -> AliPay Options[/hilite]

I’m not sure why the API is not firing, but I suspect it may be a plugin conflict. Could you please deactivate other plugins one by one and try a test transaction after each, checking if the notification happened? If it works, then the last plugin you deactivated was causing the problem.

You can also use an email address to get the notifications, check the email field at the bottom of the notification panel. [hilite path]WP Admin -> s2Member -> API / Notifications -> Specific Post/Page ~ Sale -> Send An Email[/hilite]

I hope that helps! Let us know how it goes.

Posted: Tuesday Feb 14th, 2012 at 7:08 pm #5101
Staff Member

Let’s also take a look at your underlying PayPal IPN log file. All transactions are ultimately processed by s2Member’s core PayPal IPN processor, which is where Specific Post/Page Sale Notifications are processed. Please post the contents of your /s2member-logs/paypal-ipn.log file with the related entries. Or you can send them via email through this private contact form:
http://www.s2member.com/contact/

Posted: Tuesday Feb 14th, 2012 at 9:10 pm #5126

Here you go. I did a couple more testing after I reported the issue 4/5 days ago, so there may be a few more entries here.

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 46.49 MB :: Real Memory 46.75 MB :: Peak Memory 46.59 MB :: Real Peak Memory 46.75 MB
wanda.example.com/?s2member_paypal_notify=1&s2member_paypal_proxy=alipay&s2member_paypal_proxy_use=standard-emails&s2member_paypal_proxy_verification=e58a432d9c3bd07e4648eeb6b35701ef
User-Agent: WordPress/3.3.1; http://wanda.example.com
array (
  'txn_type' => 'web_accept',
  'txn_id' => '2012021066547394',
  'custom' => 'wanda.example.com|新春联谊会|2|0.01元/人',
  'mc_gross' => '0.02',
  'mc_currency' => 'CNY',
  'tax' => '0.00',
  'payer_email' => 'info@example.com',
  'first_name' => 'info',
  'last_name' => 'example.com',
  'option_name1' => 'Referencing Customer ID',
  'option_selection1' => '1',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '120.36.100.48',
  'item_number' => 'sp:1446:43800',
  'item_name' => '新春联谊会|2',
  'proxy_verified' => 'alipay',
  's2member_log' => 
  array (
    0 => 'IPN received on: Fri Feb 10, 2012 7:08:08 am UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `web_accept` ) for Specific Post/Page Access.',
    4 => 'Specific Post/Page ~ Sale associated with User ID: 1.',
    5 => 'Specific Post/Page Confirmation Email sent to: "info example.com" .',
  ),
  'subscr_gateway' => 'alipay',
  'hours' => '43800',
  'sp_ids' => '1446',
  'ip' => '120.36.100.48',
  's2member_paypal_proxy' => 'alipay',
  's2member_paypal_proxy_use' => 'standard-emails',
  's2member_paypal_proxy_verification' => 'e58a432d9c3bd07e4648eeb6b35701ef',
)

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 46.41 MB :: Real Memory 46.50 MB :: Peak Memory 46.49 MB :: Real Peak Memory 46.50 MB
wanda.example.com/?s2member_paypal_notify=1&s2member_paypal_proxy=alipay&s2member_paypal_proxy_use=standard-emails&s2member_paypal_proxy_verification=e58a432d9c3bd07e4648eeb6b35701ef
User-Agent: WordPress/3.3.1; http://wanda.example.com
array (
  'txn_type' => 'web_accept',
  'txn_id' => '2012021073542594',
  'custom' => 'wanda.example.com|event新春联谊会|2|0.01元/人|125|',
  'mc_gross' => '0.02',
  'mc_currency' => 'CNY',
  'tax' => '0.00',
  'payer_email' => 'info@example.com',
  'first_name' => 'info',
  'last_name' => 'example.com',
  'option_name1' => 'Originating Domain',
  'option_selection1' => 'wanda.example.com',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '120.36.100.48',
  'item_number' => 'sp:1446:43800',
  'item_name' => '新春联谊会',
  'proxy_verified' => 'alipay',
  's2member_log' => 
  array (
    0 => 'IPN received on: Fri Feb 10, 2012 3:10:00 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `web_accept` ) for Specific Post/Page Access.',
    4 => 'Specific Post/Page Confirmation Email sent to: "info example.com" .',
    5 => 'Specific Post/Page ~ Sale Notification URLs have been processed.',
  ),
  'subscr_gateway' => 'alipay',
  'hours' => '43800',
  'sp_ids' => '1446',
  'ip' => '120.36.100.48',
  's2member_paypal_proxy' => 'alipay',
  's2member_paypal_proxy_use' => 'standard-emails',
  's2member_paypal_proxy_verification' => 'e58a432d9c3bd07e4648eeb6b35701ef',
)

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 46.38 MB :: Real Memory 46.50 MB :: Peak Memory 46.47 MB :: Real Peak Memory 46.50 MB
wanda.example.com/?s2member_paypal_notify=1&s2member_paypal_proxy=alipay&s2member_paypal_proxy_use=standard-emails&s2member_paypal_proxy_verification=e58a432d9c3bd07e4648eeb6b35701ef
User-Agent: WordPress/3.3.1; http://wanda.example.com
array (
  'txn_type' => 'web_accept',
  'txn_id' => '2012021073720294',
  'custom' => 'wanda.example.com|event新春联谊会|2|0.01元/人|129|',
  'mc_gross' => '0.02',
  'mc_currency' => 'CNY',
  'tax' => '0.00',
  'payer_email' => 'info@example.com',
  'first_name' => 'info',
  'last_name' => 'example.com',
  'option_name1' => 'Originating Domain',
  'option_selection1' => 'wanda.example.com',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '120.36.100.48',
  'item_number' => 'sp:1446:43800',
  'item_name' => '新春联谊会',
  'proxy_verified' => 'alipay',
  's2member_log' => 
  array (
    0 => 'IPN received on: Fri Feb 10, 2012 3:26:27 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `web_accept` ) for Specific Post/Page Access.',
    4 => 'Specific Post/Page Confirmation Email sent to: "info example.com" .',
    5 => 'Specific Post/Page ~ Sale Notification URLs have been processed.',
  ),
  'subscr_gateway' => 'alipay',
  'hours' => '43800',
  'sp_ids' => '1446',
  'ip' => '120.36.100.48',
  's2member_paypal_proxy' => 'alipay',
  's2member_paypal_proxy_use' => 'standard-emails',
  's2member_paypal_proxy_verification' => 'e58a432d9c3bd07e4648eeb6b35701ef',
)

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 46.38 MB :: Real Memory 46.50 MB :: Peak Memory 46.46 MB :: Real Peak Memory 46.50 MB
wanda.example.com/?s2member_paypal_notify=1&s2member_paypal_proxy=alipay&s2member_paypal_proxy_use=standard-emails&s2member_paypal_proxy_verification=e58a432d9c3bd07e4648eeb6b35701ef
User-Agent: WordPress/3.3.1; http://wanda.example.com
array (
  'txn_type' => 'web_accept',
  'txn_id' => '2012021073845594',
  'custom' => 'wanda.example.com|event新春联谊会|2|0.01元/人|132|',
  'mc_gross' => '0.02',
  'mc_currency' => 'CNY',
  'tax' => '0.00',
  'payer_email' => 'info@example.com',
  'first_name' => 'info',
  'last_name' => 'example.com',
  'option_name1' => 'Originating Domain',
  'option_selection1' => 'wanda.example.com',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '120.36.100.48',
  'item_number' => 'sp:1446:43800',
  'item_name' => '新春联谊会',
  'proxy_verified' => 'alipay',
  's2member_log' => 
  array (
    0 => 'IPN received on: Fri Feb 10, 2012 3:38:30 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `web_accept` ) for Specific Post/Page Access.',
    4 => 'Specific Post/Page Confirmation Email sent to: "info example.com" .',
    5 => 'Specific Post/Page ~ Sale Notification URLs have been processed.',
  ),
  'subscr_gateway' => 'alipay',
  'hours' => '43800',
  'sp_ids' => '1446',
  'ip' => '120.36.100.48',
  's2member_paypal_proxy' => 'alipay',
  's2member_paypal_proxy_use' => 'standard-emails',
  's2member_paypal_proxy_verification' => 'e58a432d9c3bd07e4648eeb6b35701ef',
)

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 46.38 MB :: Real Memory 46.50 MB :: Peak Memory 46.46 MB :: Real Peak Memory 46.50 MB
wanda.example.com/?s2member_paypal_notify=1&s2member_paypal_proxy=alipay&s2member_paypal_proxy_use=standard-emails&s2member_paypal_proxy_verification=e58a432d9c3bd07e4648eeb6b35701ef
User-Agent: WordPress/3.3.1; http://wanda.example.com
array (
  'txn_type' => 'web_accept',
  'txn_id' => '2012021174043494',
  'custom' => 'wanda.example.com|event|新春联谊会|2|0.01元/人|136|',
  'mc_gross' => '0.02',
  'mc_currency' => 'CNY',
  'tax' => '0.00',
  'payer_email' => 'info@example.com',
  'first_name' => 'info',
  'last_name' => 'example.com',
  'option_name1' => 'Originating Domain',
  'option_selection1' => 'wanda.example.com',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '120.36.100.48',
  'item_number' => 'sp:1446:43800',
  'item_name' => '新春联谊会',
  'proxy_verified' => 'alipay',
  's2member_log' => 
  array (
    0 => 'IPN received on: Fri Feb 10, 2012 4:01:09 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `web_accept` ) for Specific Post/Page Access.',
    4 => 'Specific Post/Page Confirmation Email sent to: "info example.com" .',
    5 => 'Specific Post/Page ~ Sale Notification URLs have been processed.',
  ),
  'subscr_gateway' => 'alipay',
  'hours' => '43800',
  'sp_ids' => '1446',
  'ip' => '120.36.100.48',
  's2member_paypal_proxy' => 'alipay',
  's2member_paypal_proxy_use' => 'standard-emails',
  's2member_paypal_proxy_verification' => 'e58a432d9c3bd07e4648eeb6b35701ef',
)

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v111220 :: s2Member® Pro v111220
Memory 49.86 MB :: Real Memory 50.00 MB :: Peak Memory 49.99 MB :: Real Peak Memory 50.00 MB
wanda.example.com/?s2member_paypal_notify=1&s2member_paypal_proxy=alipay&s2member_paypal_proxy_use=standard-emails&s2member_paypal_proxy_verification=e58a432d9c3bd07e4648eeb6b35701ef
User-Agent: WordPress/3.3.1; http://wanda.example.com
array (
  'txn_type' => 'web_accept',
  'txn_id' => '2012021440081694',
  'custom' => 'wanda.example.com|prod|0.1yuan|1|0.1||',
  'mc_gross' => '0.10',
  'mc_currency' => 'CNY',
  'tax' => '0.00',
  'payer_email' => 'info@example.com',
  'first_name' => 'info',
  'last_name' => 'example.com',
  'option_name1' => 'Referencing Customer ID',
  'option_selection1' => '1',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '120.36.100.48',
  'item_number' => 'sp:1446:43800',
  'item_name' => '0.1yuan',
  'proxy_verified' => 'alipay',
  's2member_log' => 
  array (
    0 => 'IPN received on: Tue Feb 14, 2012 4:59:48 am UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `web_accept` ) for Specific Post/Page Access.',
    4 => 'Specific Post/Page ~ Sale associated with User ID: 1.',
    5 => 'Specific Post/Page Confirmation Email sent to: "info example.com" .',
    6 => 'Specific Post/Page ~ Sale Notification URLs have been processed.',
  ),
  'subscr_gateway' => 'alipay',
  'hours' => '43800',
  'sp_ids' => '1446',
  'ip' => '120.36.100.48',
  's2member_paypal_proxy' => 'alipay',
  's2member_paypal_proxy_use' => 'standard-emails',
  's2member_paypal_proxy_verification' => 'e58a432d9c3bd07e4648eeb6b35701ef',
)
Posted: Tuesday Feb 14th, 2012 at 10:59 pm #5144

Thanks! :)

I see in every entry, except the first, that the notification URLs were processed:

[hilite pre_code] 6 => 'Specific Post/Page ~ Sale Notification URLs have been processed.',[/hilite]

Could you try the email notification as I suggested above? See if you get that email?

Also, please let us know if you test for a plugin conflict and if you find one.

Posted: Wednesday Feb 15th, 2012 at 3:51 am #5207

Okay, so here is what I’m doing:

– I’m using Formidable Pro plugin to do a very simple shopping cart to fill in for the lack of invoice in S2member.
– Basically, I want to use S2member’s Notification feature to record the transaction ID and it’s paid and used status.

I have enabled email logging inside S2member (data is correct), and I have tested twice, once before and once after disabling most plugins except the form plugin. Both yield the same result, no update in the records.

I wasn’t able to find any plugin conflicts though (there were no error messages). If you are looking for something specific, or if you need to take a look at the site, please let me know.

Angela

Posted: Thursday Feb 16th, 2012 at 1:04 am #5311

Thanks Angela.

Hmm… Could you try deactivating that Formidable Pro plugin for the test too? I know it seems to be key in your setup, but I’d like to identify if it’s the cause of the notification problem.

If that doesn’t identify the problem, please send an email via the contact form: http://www.s2member.com/contact/

Posted: Thursday Feb 16th, 2012 at 8:32 am #5360

You are welcome. And thanks for responding promptly this time. But unfortunately, even disabled Formidable doesn’t change anything.
I run the script manually before testing it (and yes, with Formidable disabled). I ran it like this wanda.example.com/wp-content/themes/Wanda/s2member.php?type=prod&tid=12345&current_eid=479

Now, I can see the changes immediately in the database. And then I go ahead and started another transaction from the button. Still nothing has changed in the database, and I have no idea why. I will be getting a multisite license sometime today or tomorrow. If that still doesn’t change anything, then can I have someone take a look at this?

Angela

Edit: I have submitted my credentials through the private contact form, but I know that I would have a problem receiving confirmation emails from this site, so please let me know if you have received them. Thanks.

  • This reply was modified 4 years, 10 months ago by  zhiling zou.
Posted: Thursday Feb 16th, 2012 at 12:18 pm #5378
Staff Member

Thanks for the follow-ups.

I’ve just read back through your thread here, and it appears that s2Member is behaving properly. Specific Post/Page Notifications are being processed when they should be.

* Please NOTE: The result of any action that’s suppose to be taken by your custom script (i.e. the one connected to the API Notification that s2Member sends) goes beyond the scope of what we’ll provide support for. That’s code that you’ve written.

That being said, we’ll be happy to help you track down the source of the issue.
Here are some things that I’d take a look at please.

1. Post a copy of the configuration line that you have for this API Notification. The one which shows the Replacement Codes that you’re sending to your custom script. Perhaps there is a problem there, like your script is not yet configured to receive all the values that it needs?

2. In the API Notification that you’re connecting to, enter an email address as well. Do you receive an email? API Notifications can be sent to either a URL, or just to an email address, or to both. So during your tests, I recommend that you have it sent to your email address and also to your custom script.

Posted: Thursday Feb 16th, 2012 at 8:45 pm #5420
Angela Zou
Username: angelaz

Hi Jason,

This is URL I’ve configured in the Specific Post/Page Sales Notification: http://wanda.example.com/wp-content/themes/Wanda/s2member.php?tid=%%txn_id%%&type=%%cv1%%&current_eid=%%cv4%%

I’ve also purchased the unlimited site license here (however, I wasn’t able to find any information in the installation package that indicates this is a single site or unlimited site license. I mean, how does S2member check whether or not the license is valid?), but I still don’t see any updates in the database.

My script is very simple, use the variables and update the a form entry with its transaction ID and paid status. See the script here http://fpaste.org/6mRp/

Like I mentioned before, I got it working if I manually do this http://wanda.example.com/wp-content/themes/Wanda/s2member.php?tid=12345&type=prod&current_eid=479.

And yes, I’ve already configured Email notification and they are received correctly and so is the data. I just don’t understand why this is not being triggered.

Angela

Posted: Thursday Feb 16th, 2012 at 9:07 pm #5424
Eduan
Username: Eduan
Moderator

Hi Angela, thanks for the follow-up.

Regarding your question about the unlimited-site/single-site license.

The difference between these licenses is how many sites it can work with without restrictions from s2Member itself.

The way s2Member knows whether it’s one license or another, is in the version you download. So the unlimited-site license knows that it’s an unlimited-site license copy, and so it won’t give any restrictions in the regard of how many websites it can be used on. The single-site license communicates with s2Member to identify your main website that you selected at checkout, it will not work on any other website other than the one set up there.

Does this answer your question?

Posted: Friday Feb 17th, 2012 at 1:10 am #5447
Angela Zou
Username: angelaz

Yes, it does. I’ve just swapped for a new installation of multisite license, but guess I wouldn’t have anyway of figuring out what kind of license I’m on… So are there any thing wrong with my URL or the script?

Posted: Friday Feb 17th, 2012 at 2:49 am #5463

I’m looking at your custom attribute in the shortcode: [hilite mono]"example.com|event|' . $event . '|' . $num . '|' . $amount . '|' . $eid . '|' . $uid . '"[/hilite].

cv1: event
cv2: $event
cv3: $num
cv4: $amount
cv5: $eid
cv6: $uid

Now the notification URL: [hilite mono]tid=%%txn_id%%&type=%%cv1%%¤t_eid=%%cv4%%[/hilite].

tid = %%txn_id%%
type = %%cv1%%
current_eid = %%cv4%%

For [hilite mono]current_eid[/hilite] you’re using [hilite mono]%%cv4%%[/hilite], which seems wrong, I’d guess you meant [hilite mono]%%cv5%%[/hilite].

I’m not sure if there’s a similar issue with [hilite mono]type[/hilite] or this would cause your script to not work.

Viewing 13 replies - 1 through 13 (of 13 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.