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.

Paypal IPN w. Proxy subscription

Home Forums Community Forum Paypal IPN w. Proxy subscription

This topic contains 4 replies, has 3 voices. Last updated by  Jino John 3 years, 9 months ago.

Topic Author Topic
Posted: Sunday Mar 10th, 2013 at 4:28 pm #44222
Jino John
Username: jino

Hi,

I am trying to setup Paypal IPN w. Proxy recurring subscription. I created new subscription using txn_type=subscr_signup.

hers is my notify url generated:

http://www.tabsguys.com/?s2member_paypal_notify=1&s2member_paypal_proxy=rlx&s2member_paypal_proxy_verification=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&txn_type=subscr_signup&custom=www.tabsguys.com&recurring=1&first_name=jj&last_name=tst&item_number=1&payer_email=test2%40tabsguys.com&mc_amount3=5&period3=1+M&payer_id=20130310132803&subscr_id=20130310132803&txn_id=20130310132803-829

and the log:

PHP v5.2.17 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 31.84 MB :: Real Memory 32.75 MB :: Peak Memory 31.92 MB :: Real Peak Memory 32.75 MB
http://www.tabsguys.com/?s2member_paypal_notify=1&s2member_paypal_proxy=rlx&s2member_paypal_proxy_verification=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&txn_type=subscr_signup&custom=www.tabsguys.com&recurring=1&first_name=jj&last_name=tst&item_number=1&payer_email=test2%40tabsguys.com&mc_amount3=5&period3=1+M&payer_id=20130310132803&subscr_id=20130310132803&txn_id=20130310132803-829
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
array (
‘txn_type’ => ‘subscr_signup’,
‘custom’ => ‘www.tabsguys.com’,
‘recurring’ => ‘5’,
‘first_name’ => ‘jj’,
‘last_name’ => ‘tst’,
‘item_number’ => ‘1’,
‘payer_email’ => ‘test2@tabsguys.com’,
‘mc_amount3’ => ‘5’,
‘period3’ => ‘1 M’,
‘payer_id’ => ‘20130310132803’,
‘subscr_id’ => ‘20130310132803’,
‘txn_id’ => ‘20130310132803-829’,
‘regular’ => ‘5’,
‘proxy_verified’ => ‘rlx’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Sun Mar 10, 2013 8:20:07 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: “jj tst” .’,
6 => ‘Storing IPN signup vars into a Transient Queue. These will be processed on registration.’,
),
‘subscr_gateway’ => ‘rlx’,
‘eotper’ => NULL,
‘ccaps’ => NULL,
‘level’ => ‘1’,
‘ip’ => ”,
‘period1’ => ‘0 D’,
‘mc_amount1’ => ‘0.00’,
‘initial_term’ => ‘0 D’,
‘initial’ => ‘5’,
‘regular_term’ => ‘1 M’,
‘s2member_paypal_proxy’ => ‘rlx’,
‘s2member_paypal_proxy_verification’ => ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’,
)

My problems:

1] I am getting recurring = 5 in logs (It is taking the value of mc_amount3) even if I set recurring=1 in notify url.
Is this normal?

2] If the above behaviour is normal, how do I process the recurring payments? Do I need to create a system to monitor and trigger the recurring payments?

thanks ..

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Tuesday Mar 12th, 2013 at 11:43 am #44386

Hi Jino.

1] I am getting recurring = 5 in logs (It is taking the value of mc_amount3) even if I set recurring=1 in notify url.
Is this normal?

Thanks for reporting this. I’ll ask Jason about it because it looks weird to me too, but I’m not familiar with the IPN w/ Proxy Key.

2] If the above behaviour is normal, how do I process the recurring payments? Do I need to create a system to monitor and trigger the recurring payments?

These would need to be done by your payment gateway, since it’s the one that has the payment info, and notify s2Member.

Posted: Wednesday Mar 13th, 2013 at 11:35 am #44495
Jino John
Username: jino

Hi Guys, any updates …

Posted: Friday Mar 15th, 2013 at 8:24 am #44681
Staff Member

Thanks for the heads up on this thread :-)

1] I am getting recurring = 5 in logs (It is taking the value of mc_amount3) even if I set recurring=1 in notify url.
Is this normal?

This is normal, and to be expected. Some of the variables that you pass are actually translated by s2Member® into data that can be passed into API Notifications and processed by site owners in some creative ways.

Since you are passing recurring=1, it indicates that mc_amount3 will recur; and s2Member® sets the value of recurring to 5 (indicating that amount will be charged on a recurring basis).

You can make a little more sense of this here.
See: Dashboard -› s2Member® -› API / Notifications -› Signup Notifications
(click screenshot to enlarge please)

2] If the above behaviour is normal, how do I process the recurring payments? Do I need to create a system to monitor and trigger the recurring payments?

The above behavior is correct. Yes, any recurring billing that occurs, must take place remotely; and then you will need to send s2Member® an IPN (like PayPal® does) with txn_type=recurring_payment or txn_type=subscr_payment. This lets s2Member® know that a payment took place.

Posted: Wednesday Mar 20th, 2013 at 7:51 am #45225
Jino John
Username: jino

Thanks Jason,

1] Is txn_type=subscr_payment is the correct txn_type to use on each additional recurring payment notification?

2] I get ‘Ignoring this IPN request. The `txn_type/status` does NOT require any action on the part of s2Member.’ on log when I cancel the subscription. So does s2member automatically perform EOT when the current subscription period is finished or should I notify s2member using txn_type=subscr_eot ?

URL:

http://www.tabsguys.com/?s2member_paypal_notify=1&s2member_paypal_proxy=rlx&s2member_paypal_proxy_verification=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&txn_type=subscr_cancel&custom=www.tabsguys.com&item_number=1&payer_email=test7%40tabsguys.com&period3=1+M&subscr_id=test7%40tabsguys.com&txn_id=20130320105245-775

Log:

LOG ENTRY: Wed Mar 20th, 2013 @ precisely 11:22 am UTC
PHP v5.2.17 :: WordPress® v3.5.1 :: s2Member® v130221 :: s2Member® Pro v130221
Memory 31.76 MB :: Real Memory 33.00 MB :: Peak Memory 32.09 MB :: Real Peak Memory 33.00 MB
http://www.tabsguys.com/?s2member_paypal_notify=1&s2member_paypal_proxy=rlx&s2member_paypal_proxy_verification=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&txn_type=subscr_cancel&custom=www.tabsguys.com&item_number=1&payer_email=test7%40tabsguys.com&period3=1+M&subscr_id=test7%40tabsguys.com&txn_id=20130320105245-775
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
array (
‘txn_type’ => ‘subscr_cancel’,
‘custom’ => ‘www.tabsguys.com’,
‘item_number’ => ‘1’,
‘payer_email’ => ‘test7@tabsguys.com’,
‘period3’ => ‘1 M’,
‘subscr_id’ => ‘test7@tabsguys.com’,
‘txn_id’ => ‘20130320105245-775’,
‘proxy_verified’ => ‘rlx’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Wed Mar 20, 2013 11:22:37 am UTC’,
1 => ‘s2Member POST vars verified with a Proxy Key’,
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’ => ‘rlx’,
‘s2member_paypal_proxy’ => ‘rlx’,
‘s2member_paypal_proxy_verification’ => ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’,
)

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