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.

Home Forums Abbe

About: Abbe

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Existing user with Paypal IPN w. Proxy

By:  Abbe in: Community Forum

voices: 3
replies: 4

4 years, 1 month ago  Abbe

Subscription with Paypal IPN w. Proxy

By:  Abbe in: Community Forum

voices: 4
replies: 9

4 years, 2 months ago  Abbe

Modify Subscription with Paypal IPN w. Proxy

By:  Abbe in: Community Forum

voices: 3
replies: 3

4 years, 2 months ago  Jason (Lead Developer)

Viewing 3 topics - 1 through 3 (of 3 total)

Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Existing user with Paypal IPN w. Proxy

By:  Abbe in: Community Forum

voices: 3
replies: 4

4 years, 1 month ago  Abbe

Subscription with Paypal IPN w. Proxy

By:  Abbe in: Community Forum

voices: 4
replies: 9

4 years, 2 months ago  Abbe

Modify Subscription with Paypal IPN w. Proxy

By:  Abbe in: Community Forum

voices: 3
replies: 3

4 years, 2 months ago  Jason (Lead Developer)

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Sunday Nov 18th, 2012 at 4:22 pm #31945
Abbe
Username: raptor

Thank you, I got it to work :)

Posted: Monday Nov 12th, 2012 at 12:55 pm #31323
Abbe
Username: raptor

Any updates on this one?

Posted: Saturday Nov 3rd, 2012 at 5:34 pm #30567
Abbe
Username: raptor

Thanks Jason I now got create, cancel and modify subscription to work . . . Perfect :)

But now I have stumbled on another challenge. This is creating a subscription for a user that already exists in my wordpress blog. It might be a user that had a previous subscription and then got demoted and now has the ‘subscriber’ role (Level #0 user).

When I create a new subscription with txn_type=’subscr_signup’, s2Member sends the user that paid a mail telling him that payment was successful and link so that he can register. This is good and works for new Yet unregistered users.

But if I have a user that already is registered in my wordpress blog with the subscriber (Level #0 user) role it doesn’t work. Sending a transaction with txn_type=’subscr_signup’ doesn’t recognise that the user already exists, and will still send an e-mail with link to register. Unfortunately, this time the user cannot register as the user already exists.

I therefore tried to create a subscription with txn_type=’subscr_payment’ instead. I still failed though. See log below.

So my questions are.
1: What is the strategy to create an subscription for an already existing user so that s2Member recognises him and automatically associates the transaction with him?

2: If txn_type=’subscr_payment’ is the right way, what important field have I missed to get s2Member to recognise that the transaction belongs to an existing user?

Please se log below:

array (
‘first_name’ => ‘Test’,
‘last_name’ => ‘Testuser’,
‘payer_email’ => ‘test@testing.com’,
‘item_number’ => ‘1’,
‘item_name’ => ‘s2Member Level 1’,
‘mc_currency’ => ‘USD’,
‘mc_amount3’ => ‘29.95’,
‘mc_fee’ => ‘0.34’,
‘mc_gross’ => ‘9.34’,
‘txn_type’ => ‘subscr_payment’,
‘subscr_id’ => ‘0702362132’,
‘period3’ => ‘1 D’,
‘recurring’ => ”,
‘custom’ => ‘www.myweb.com’,
‘proxy_verified’ => ‘sms’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Sat Nov 3, 2012 9:14:35 pm 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’ => ‘sms’,
‘s2member_paypal_proxy’ => ‘sms’,
‘s2member_paypal_proxy_verification’ => ‘d8fa2a4e12218c04d3205119612c7ff8’,
)

Posted: Tuesday Oct 30th, 2012 at 5:30 pm #30216
Abbe
Username: raptor

Thanks for this Raam!

I am eagerly awaiting Jason’s response. Have you heard anything from him regarding this?

Posted: Friday Oct 26th, 2012 at 6:17 pm #29877
Abbe
Username: raptor

Works perfectly, with both txn_id or subscr_id. Can now create subscriptions. Thanks Jason! :)

A follow up question. I also after successfully created a subscription tried to to perform a ‘subscr_cancel’ on it but failed. I have tried with different variables and looked at paypals documentation but cannot get it right. What variable am I missing in this case?

‘txn_type’ => ‘subscr_cancel’,
‘custom’ => ‘www.myweb.com,
‘first_name’ => ‘Test’,
‘last_name’ => ‘Testuser’,
‘username’ => ‘TEST’,
‘payer_email’ => ‘test@testing.com’,
‘txn_id’ => ‘1702362107’,
‘parent_txn_id’ => ‘0702362108’,
‘proxy_verified’ => ‘sms’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Fri Oct 26, 2012 10:04:46 pm 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.’

Posted: Friday Oct 26th, 2012 at 12:50 pm #29821
Abbe
Username: raptor

Any more input on this one?

Posted: Thursday Oct 25th, 2012 at 2:15 pm #29675
Abbe
Username: raptor

Hi Raam!

I am using none of the ones you describe. I am using the ‘IPN w/ Proxy Key methodology’ as found under:

‘s2Member -> PayPal Options -> IPN Integration -> IPN w/ Proxy Key’

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

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.