Level not set properly after returning from Paypal
Posted: October 17th, 2010, 2:53 pm
Hello!
Thanks for this great plugin! it's a amazing piece of software!
I am using S2Member (free version 3.2.8) with BuddyPress 1.2.5 and WordPress 3.0.1. I am having an important issue that I noticed in 3.2.7 and 3.2.8.. I am in a test site with Paypal sandbox activated. I tested this before and it used to work with previous versions of S2Member. Maybe something got corrupted in the latest versions?
Here what I experience:
- A new user comes to my site without having an account
- He chooses to get a paid membership account right away
- He goes to Paypal and pays successfully
- He returns to my site and is asked to complete registration
- He completes registration
- User is created, and its Subcr. ID is stored correctly in WP admin BUT THE LEVEL IS NOT SET PROPERLY.
- User is still at the "subscriber" level.
The log array shows that the correct level has been passed from my site to Paypal and back again. I dunno where the problem is.
What can I do?
Thanks anyone for your help! I can't go live before I fix this.
Marc-Olivier
Thanks for this great plugin! it's a amazing piece of software!
I am using S2Member (free version 3.2.8) with BuddyPress 1.2.5 and WordPress 3.0.1. I am having an important issue that I noticed in 3.2.7 and 3.2.8.. I am in a test site with Paypal sandbox activated. I tested this before and it used to work with previous versions of S2Member. Maybe something got corrupted in the latest versions?
Here what I experience:
- A new user comes to my site without having an account
- He chooses to get a paid membership account right away
- He goes to Paypal and pays successfully
- He returns to my site and is asked to complete registration
- He completes registration
- User is created, and its Subcr. ID is stored correctly in WP admin BUT THE LEVEL IS NOT SET PROPERLY.
- User is still at the "subscriber" level.
The log array shows that the correct level has been passed from my site to Paypal and back again. I dunno where the problem is.
- Code: Select all
array (
'payment_date' => '12:38:40 Oct 17, 2010 PDT',
'txn_type' => 'subscr_payment',
'subscr_id' => 'I-8EYKE1VEND9J',
'last_name' => 'User',
'residence_country' => 'CA',
'item_name' => 'Membre Allie - Ally Member',
'mc_currency' => 'CAD',
'business' => 'mo.oue_1278179508_biz@gmail.com',
'payment_type' => 'instant',
'protection_eligibility' => 'Ineligible',
'payer_status' => 'unverified',
'payer_email' => 'user_1287338652_per@gmail.com',
'txn_id' => '3V096213PF155481E',
'receiver_email' => 'mo.oue_1278179508_biz@gmail.com',
'first_name' => 'Test',
'payer_id' => '8CK4XEAWQD4YY',
'receiver_id' => 'FK64BSWQB5NR4',
'item_number' => '2',
'payment_status' => 'Completed',
'mc_fee' => '1.75',
'mc_gross' => '50.00',
'custom' => 'beta.alterheros.com',
'charset' => 'windows-1252',
's2member_log' =>
array (
0 => 'Return-Data received on: Sun Oct 17, 2010 7:38:50 pm 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 (web_accept|subscr_signup|subscr_payment).',
4 => 's2Member txn_type identified as (web_accept|subscr_signup|subscr_payment) w/o update vars.',
5 => 'Registration Cookies set on (web_accept|subscr_signup|subscr_payment) w/o update vars.',
6 => 'Redirecting Customer to Registration Page. They need to Register now.',
),
'eotper' => NULL,
'ccaps' => NULL,
'level' => '2',
)
What can I do?
Thanks anyone for your help! I can't go live before I fix this.
Marc-Olivier