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.

Payment Notification Trigger Not 100% Working

Home Forums Community Forum Payment Notification Trigger Not 100% Working

This topic contains 18 replies, has 4 voices. Last updated by  Allan 4 years, 4 months ago.

Topic Author Topic
Posted: Wednesday Aug 1st, 2012 at 4:25 pm #20935
Allan
Username: optionsweekly

HI all,

My 2nd S2M website’s Payment Notification is only triggered upon 1st time payment. Subsequent recurring payments, there are no Payment notification emails, hence I believe its due to the Payment Notification API not triggered..

I tried to find out but still no clue.

What I do know is,

i) Paypal IPN is communicating to my S2M (only forevery member’s 1st time payment)
ii) My Payment Notification codes are good. (only forevery member’s 1st time payment)

Any help would be great..

Thanks.

Allan

List Of Topic Replies

Viewing 18 replies - 1 through 18 (of 18 total)
Author Replies
Author Replies
Posted: Thursday Aug 2nd, 2012 at 2:33 am #20966
Raam Dev
Username: Raam
Staff Member

Hi Allan,

Have you enabled logging (Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging)? The next step would be to look at the logs to see if anything is amiss there.

Posted: Saturday Aug 4th, 2012 at 4:10 pm #21158
Allan
Username: optionsweekly

Hi Raam,

The log shows that the recurring payments are in… Paypal IPN was sent to /wp-content/plugins/s2member-logs/paypal-ipn.log ….

Any clue why it is not triggered?

I mean, I get the new members payments’ Payment notification emails.. just not the recurring ones..

Any suggestions or help?

Posted: Tuesday Aug 7th, 2012 at 12:59 am #21306
Raam Dev
Username: Raam
Staff Member

Hi Allan,

Can you please share the log entires from the log files in plugins/s2member-logs/ related to the recurring transaction where you expected an email to be sent?

Also, have you read Knowledge Base » Troubleshooting Email Delivery Problems and installed the Email Log plugin? What does the Email Log say after a recurring payment goes through?

Posted: Tuesday Aug 7th, 2012 at 6:21 am #21342
Allan
Username: optionsweekly

Hi Raam,

It seems that IPN log shows that the recurring payments IPNs were received but S2M log says they have been ignored.. that explains why no payment notification sent.. See below.. The 1st set is the initial signup log.. which triggers the notifications… And the 2nd set is the recurring one which did not trigger the email notification.

Please help…

PHP v5.2.9 :: WordPress® v3.4.1 :: s2Member® v120703 :: s2Member® Pro v120703
Memory 30.71 MB :: Real Memory 31.75 MB :: Peak Memory 30.77 MB :: Real Peak Memory 31.75 MB
goledddddg.com/?s2member_paypal_notify=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=pro-emails,subscr-signup-as-subscr-payment&s2member_paypal_proxy_verification=a584684f5076a6a8391c03714eafa5f3&s2member_paypal_proxy_return_url=http%3A%2F%2Fgolearnforextrading.com%2Fthank-you%2F%3Fsubscr_id%3D%25%25subscr_id%25%25
User-Agent: WordPress/3.4.1; http://dddddd.com
array (
‘txn_type’ => ‘subscr_signup’,
‘subscr_id’ => ‘I-46RGNUERDJ4D’,
‘custom’ => ‘golccd.com’,
‘txn_id’ => ‘I-46RGNUERDJ4D’,
‘period1’ => ‘1 D’,
‘period3’ => ‘1 D’,
‘mc_amount1’ => ‘1.02’,
‘mc_amount3’ => ‘0.61’,
‘mc_gross’ => ‘1.02’,
‘mc_currency’ => ‘USD’,
‘tax’ => ‘0.00’,
‘recurring’ => ‘0.61’,
‘payer_email’ => ’emailsomeone@yahoo.com’,
‘first_name’ => ‘Testing’,
‘last_name’ => ‘Gooof’,
‘option_name1’ => ‘Originating Domain’,
‘option_selection1’ => ‘gocccing.com’,
‘option_name2’ => ‘Customer IP Address’,
‘option_selection2’ => ‘82.0.118.212’,
‘item_name’ => ‘Learn System + 6 Months Trade Alerts @ $1 / Then $0.70 USD Every day’,
‘item_number’ => ‘2’,
‘proxy_verified’ => ‘paypal’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Sat Aug 4, 2012 8:34: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|subscr_signup` ).’,
4 => ‘s2Member `txn_type` identified as ( `web_accept|subscr_signup` ) w/o update vars.’,
5 => ‘Signup Confirmation Email sent to: “Testing Gooof” .’,
6 => ‘Signup Notification URLs have been processed.’,
7 => ‘Subscr. Return ( `modification=0` ), a Proxy Return URL is ready.’,
8 => ‘User exists. Handling `payment` for Subscription via ( `subscr-signup-as-subscr-payment` ).’,
9 => ‘Payment Notification URLs have been processed.’,
10 => ‘Storing IPN signup vars now. These are associated with a User\’s account record; for future reference.’,
),
‘subscr_gateway’ => ‘paypal’,
‘eotper’ => NULL,
‘ccaps’ => NULL,
‘level’ => ‘2’,
‘ip’ => ‘82.0.118.212’,
‘initial_term’ => ‘1 D’,
‘initial’ => ‘1.02’,
‘regular’ => ‘0.61’,
‘regular_term’ => ‘1 D’,
‘s2member_paypal_proxy_return_url’ => ‘http://vvvvvvv.com/thank-you/?subscr_id=I-46RGNUERDJ4D’,
‘s2member_paypal_proxy’ => ‘paypal’,
‘s2member_paypal_proxy_use’ => ‘pro-emails,subscr-signup-as-subscr-payment’,
‘s2member_paypal_proxy_verification’ => ‘a584684f5076a6a8391c03714eafa5f3’,
)

PHP v5.2.9 :: WordPress® v3.4.1 :: s2Member® v120703 :: s2Member® Pro v120703
Memory 30.37 MB :: Real Memory 31.75 MB :: Peak Memory 30.83 MB :: Real Peak Memory 31.75 MB
golearnforextrading.com/?s2member_paypal_notify=1
User-Agent:
array (
‘mc_gross’ => ‘0.70’,
‘period_type’ => ‘Regular’,
‘outstanding_balance’ => ‘0.00’,
‘next_payment_date’ => ’03:00:00 Aug 07, 2012 PDT’,
‘protection_eligibility’ => ‘Ineligible’,
‘payment_cycle’ => ‘Daily’,
‘tax’ => ‘0.00’,
‘payer_id’ => ‘ZZYKV8QGQ2JBG’,
‘payment_date’ => ’06:47:52 Aug 06, 2012 PDT’,
‘payment_status’ => ‘Completed’,
‘product_name’ => ‘Learn System + 6 Months Trade Alerts @ $1 / Then $0.70 USD Every day’,
‘charset’ => ‘gb2312’,
‘rp_invoice_id’ => ‘1343615797:1 D:1 D~golearntrading.com~2’,
‘recurring_payment_id’ => ‘I-M6U41FXvvvvv’,
‘first_name’ => ‘Allan’,
‘mc_fee’ => ‘0.32’,
‘notify_version’ => ‘3.5’,
‘amount_per_cycle’ => ‘0.70’,
‘payer_status’ => ‘verified’,
‘currency_code’ => ‘USD’,
‘business’ => ‘metal.cccccc@cccccc,
‘verify_sign’ => ‘AX1rohXjXKkocMLT8.kN1qbNgnmmAXsECMnkIjOPRyHtD5ghl.SCcG’,
‘payer_email’ => ‘survey@vvvvvvv,
‘initial_payment_amount’ => ‘1.00’,
‘profile_status’ => ‘Active’,
‘amount’ => ‘0.70’,
‘txn_id’ => ‘5LV59737FY872430U’,
‘payment_type’ => ‘instant’,
‘last_name’ => ‘Tan’,
‘receiver_email’ => ‘metal.cocccy@tcccc,
‘payment_fee’ => ‘0.32’,
‘receiver_id’ => ‘JNPS6EV2YPP6Y’,
‘txn_type’ => ‘recurring_payment’,
‘mc_currency’ => ‘USD’,
‘residence_country’ => ‘SG’,
‘transaction_subject’ => ‘Learn System + 6 Months Trade Alerts @ $1 / Then $0.70 USD Every day’,
‘payment_gross’ => ‘0.70’,
‘shipping’ => ‘0.00’,
‘product_type’ => ‘1’,
‘time_created’ => ’07:36:38 Jul 28, 2012 PDT’,
‘ipn_track_id’ => ‘deb0151147d27’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Mon Aug 6, 2012 1:48:16 pm UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal®.’,
2 => ‘s2Member originating domain ( `$_SERVER[“HTTP_HOST”]` ) validated.’,
3 => ‘Ignoring this IPN request. The `txn_type/status` does NOT require any action on the part of s2Member.’,
),
‘subscr_gateway’ => ‘paypal’,
‘custom’ => ‘golearnforextrading.com’,
)

Posted: Tuesday Aug 7th, 2012 at 6:34 am #21343
Allan
Username: optionsweekly

Raam,

I did a comparison of my other functioning site, I noticed everything from both functioning and non functioing website’s log look similar up until the ‘s2member_log’ …

The ipn log for recurring payment (functioning 100%) would look like the following.

‘s2member_log’ =>
array (
0 => ‘IPN received on: Sun Aug 5, 2012 11:47:06 am 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 ( `subscr_payment|recurring_payment` ).’,
4 => ‘Sleeping for 5 seconds. Waiting for a possible ( `subscr_signup|subscr_modify|recurring_payment_profile_created` ).’,
5 => ‘Awake. It\’s Sun Aug 5, 2012 11:47:11 am UTC. s2Member `txn_type` identified as ( `subscr_payment|recurring_payment` ).’,
6 => ‘Updated Payment Times for this Member.’,
7 => ‘Payment Notification URLs have been processed.’,
8 => ‘Payment Notification Emails have been processed.’,
),
‘subscr_gateway’ => ‘paypal’,
‘custom’ => ‘ow.org’,
‘item_number’ => ‘2’,
‘subscr_id’ => ‘I-YUSW7TPTMWTV’,
‘item_name’ => ‘Pay $149.95 USD / Monthly ( recurring charge, for ongoing access )’,
‘ccaps’ => NULL,
‘level’ => ‘2’,
‘ip’ => ‘167.79.56.121’,
)

Compared to the non functioning recurring IPN log from the (Payment notification not functioning) website. as per below…..

‘s2member_log’ =>
array (
0 => ‘IPN received on: Mon Aug 6, 2012 1:47:27 pm UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal®.’,
2 => ‘s2Member originating domain ( `$_SERVER[“HTTP_HOST”]` ) validated.’,
3 => ‘Ignoring this IPN request. The `txn_type/status` does NOT require any action on the part of s2Member.’,
),
‘subscr_gateway’ => ‘paypal’,
‘custom’ => ‘golearnforextrading.com’,
)

What do I need to do in your opinion? Thanks

  • This reply was modified 4 years, 5 months ago by  Allan.
Posted: Wednesday Aug 8th, 2012 at 8:19 am #21484
Raam Dev
Username: Raam
Staff Member

Allan,

I’m not sure what’s wrong. I’m going to contact Jason, the lead developer, and see if he has any ideas. Thank you for your patience.

Posted: Wednesday Aug 8th, 2012 at 8:19 am #21485
Allan
Username: optionsweekly

Thanks Raam…

Posted: Saturday Aug 11th, 2012 at 10:07 am #21775
Staff Member

Thanks for the heads up on this request for support.

~ Investigating this now.

Posted: Saturday Aug 11th, 2012 at 10:14 am #21776
Staff Member

@Allan

Thanks for your patience.

OK. Based on the log entries you’ve posted, I’m unable to find a logical reason why this is failing on this one particular installation. I’d like to see the log files in their entirety, so I can see the broader perspective, and that should help us to shed light on the underlying cause of this for you.

If it’s possible to send us the full details, please submit a private contact form entry via this URL:
s2Member® » Private Contact Form

Posted: Saturday Aug 11th, 2012 at 11:34 am #21781
Allan
Username: optionsweekly

Jason..

thanks for popping by.. I have sent the info via that contact form.. Thanks..

Posted: Tuesday Aug 14th, 2012 at 3:14 pm #22021
Staff Member
Thank you. Details received.
~ Investigating now.
Posted: Tuesday Aug 14th, 2012 at 3:30 pm #22023
Staff Member

Investigation completed.

I found that your PayPal account is sending IPN data back to your s2Member installation with a “gb2312” charset. For instance, your paypal-ipn.log file contains lines like this:

'charset' => 'gb2312',

Unfortunately, PHP does not support “gb2312”, but it does support “GBK”. I’m attaching a patch file that should resolve the issue that’s being reported here.

If you decide to implement this patch, please provide any feedback that you can.
Unzip and upload the attached file, allowing it to override your existing copy of:
/s2member/includes/classes/paypal-utilities.inc.php

http://d1v41qemfjie0l.cloudfront.net/s2member/uploads/paypal-utilities.inc_.php_.zip

Reference article: http://www.php.net/manual/en/mbstring.supported-encodings.php

Posted: Tuesday Aug 14th, 2012 at 4:53 pm #22029
Allan
Username: optionsweekly

Hi Jason,

Thanks for your reply.

It should be /s2member/includes/classes/ folder.

I just did a replacement file on this faulty installation and see what will happen, however, I just checked, my other installation works well, even though it is on the same server, and has the same “old” paypal-utilities.inc.php file..

So not sure if that is going to help..

I will update this thread though.. Thanks

Allan

Posted: Friday Aug 24th, 2012 at 6:34 am #22936
Allan
Username: optionsweekly

Jason,

It is still not working even with the last remedy.. Please advise again.

Thanks

Allan

Posted: Saturday Aug 25th, 2012 at 6:17 am #23034

Thanks for the update, Allan. I’ll email Jason so he can take a new look at this. :)

Posted: Saturday Aug 25th, 2012 at 4:03 pm #23087
Allan
Username: optionsweekly

Thanks Cristian.

Posted: Monday Sep 3rd, 2012 at 2:53 am #23903
Staff Member

Thanks for the follow-ups here.

It should be /s2member/includes/classes/ folder.

Sorry about this error. I’ve updated the post above to reflect this change.

Regarding this encoding issue.

It has come to my attention there is another way to correct this issue. Please log into your PayPal account. Then visit this URL: https://www.paypal.com/ie/cgi-bin/webscr?cmd=_profile-language-encoding

1. Click the “More Options” button.
2. Choose UTF-8.
Problem solved :-)

See also: http://jlchereau.blogspot.com/2006/10/paypal-ipn-with-utf8.html

Posted: Monday Sep 3rd, 2012 at 12:41 pm #23953
Allan
Username: optionsweekly

@Jason
Thanks Jason..

Lets see if it works.

Thanks..

Viewing 18 replies - 1 through 18 (of 18 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.