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.

Memberships not Upgrading in Sandbox mode

Home Forums Community Forum Memberships not Upgrading in Sandbox mode

This topic contains 18 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 9 months ago.

Topic Author Topic
Posted: Thursday Apr 5th, 2012 at 7:37 pm #10208

The scenario: We are testing a site we installed s2memberPro on. We are in the PayPal Sandbox mode. We are testing for all different type of situations a person might come across. So we are signing up for a free membership and then upgrading as well as signing up for a paid membership at time of registration.

Results: When we sign up for a paid membership at the time of registering the account, everything is fine. However, if we are at a Level 0 status and try to sign up for any other level using the Subscr Modification buttons generated in the PayPal buttons, it submits the payment, PayPal receives the “money”, and the website tells the user to log out and in but when the user logs in they are still at Level 0. We tried even using the forms but nothing seems to modify the customers account.

We are currently stuck and don’t understand why this happens. I followed the instructions in the video and so far we seem to be doing it right. Is it sandbox that is messing this up?

List Of Topic Replies

Viewing 18 replies - 1 through 18 (of 18 total)
Author Replies
Author Replies
Posted: Friday Apr 6th, 2012 at 4:59 am #10231

It could be the sandbox. Sadly, PayPal’s sandbox isn’t really the same as the regular service but without money, there are differences. I suggest that you use the actual service, change the amounts in the buttons to 1 cent and test with that.

Also, keep logging enabled so you can get more info in case something’s wrong. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging[/hilite]

I hope that helps. :)

Posted: Sunday Apr 8th, 2012 at 11:27 am #10320

So we took the site out of Sandbox mode and started testing with our own made up users.

We have both a form to upgrade to Level 1 and modification buttons to upgrade to all other levels (we wanted to test if one was better than the other). The button goes to an error page saying it is “unable to decrypt the certificate id,” while the form takes the payment and requests the user to log back in. When logging in, it does not upgrade the user to Level 1 and logs back into the Free Membership page we have set up for our Level 0 login welcome page. We did however receive the payment in our PayPal account, so it is clearly completing the transaction.

Unfortunately I looked at the logs but I am not sure how to read them clearly. I did check that our server is the right php with cURL and a Linux/Unix server, so I don’t think it is that. I am not sure if the SSL that we have is blocking anything. What should I be looking for/doing to fix this problem?

Posted: Sunday Apr 8th, 2012 at 4:22 pm #10329

Did you make sure your PayPal configuration is complete? [hilite path]Dashboard -› s2Member® -› PayPal® Options[/hilite]

Could you post the related entries from all the log files, x’ing out private info (e.g. email, last name)?

Thanks!

Posted: Sunday Apr 8th, 2012 at 5:42 pm #10332

Thank you for your response. We have however identified that the problem is caused by the (Network Solutions) SSL on the page, because the upgrade button works fine on a page with no security. We now need help and advice how to resolve the problem with the SSL – is there code or something that can fix or force a translation so that the PayPal upgrade button works and communicates properly to PayPal?

Posted: Sunday Apr 8th, 2012 at 9:33 pm #10343

If you’re using a PayPal button, you don’t need SSL in that page, since the user will be taken to PayPal’s site to pay, which is the one that’ll deal witht he secure page for payment. You need SSL if you have a pro-form to receive payments on-site. Pre Sale FAQs » Do I need an SSL certificate to use PayPal® Pro or Authorize.Net®?

I hope that helps. :)

Posted: Monday Apr 9th, 2012 at 6:37 pm #10396

Hello again – I have worked around the problem as follows – but still have an issue with S2Member not updating itself after an upgrade.
I have set up three separate “Upgrade” Modification Pro forms – one for each possible upgrade. I just did a live test with an account that has monthly membership successfully set up, clicked upgrade to level 1 button, taken to correct form, applied a coupon, completed form and payment successfully. Told to log on again, clicked link, logged on, BUT then landed on Welcome to Monthly membership page instead of Welcome to Annual Membership page. I then logged off and on again to double check. no change. Then logged off and logged in as admin and checked the users list and there is no change there either – still says monthly member.

Jana (the seller) has received correct confirmation of cancellation of monthly profile from PayPal and new yearly profile set up to pay annually.

I, Katja (the customer) has received notification from PayPal of the monthly payment profile being cancelled – BUT no email has come in confirming the new Annual payment/profile

Any ideas or advice on how to resolve this would be much much appreciated.

Posted: Monday Apr 9th, 2012 at 8:15 pm #10409

Did a further user test, upgrading a free member (a different LIVE account LIVE mode) to Single Session membership. Again it says Your profile has been updated successfully – (BUT it hasn’t) The user is still only FREE status. It takes the money – successfully. Tell you you have been updated and to log on again. etc… then after signing in again you are back to square one.

Posted: Tuesday Apr 10th, 2012 at 1:20 am #10425

Jana, could you please post the log entries related to your tests? From every log file in the s2member-logs directory, please. Remember to x’out any private info (e.g. email, last name).

Also, did you make sure you were logged into the account you wanted to modify when you tried the pro-form? Does the account show the subscr ID in its profile?

Thanks!

Posted: Tuesday Apr 10th, 2012 at 6:45 am #10446

Yes – each subscriber was logged in and the system correctly auto filled in the profile info each time – just had to add payment method etc..

I’ll get the logs for you

Posted: Tuesday Apr 10th, 2012 at 8:05 am #10450

Here are logs from two failed upgrades (LIVE MODE)

PHP v5.3.8 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 29.46 MB :: Real Memory 29.75 MB :: Peak Memory 29.52 MB :: Real Peak Memory 29.75 MB
COREFITNESSBYJANA.COM/wordpress/?s2member_paypal_notify=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=pro-emails,subscr-signup-as-subscr-payment&s2member_paypal_proxy_verification=e9f05b9bcb49a003178e2b8171ec9ea6&s2member_paypal_proxy_return_url=
User-Agent: WordPress/3.3.1; http://COREFITNESSBYJANA.COM/wordpress
array (
‘s2member_log’ =>
array (
0 => ‘Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.’,
1 => ‘If you\’re absolutely SURE that your 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/communicate with your Payment Gateway 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; and 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 => ‘Please see this thread: `http://www.s2member.com/forums/topic/ideal-server-configuration-for-s2member/` for details regarding the ideal server configuration for s2Member.’,
4 => ‘array (
\’s2member_paypal_notify\’ => \’1\’,
\’s2member_paypal_proxy\’ => \’paypal\’,
\’s2member_paypal_proxy_use\’ => \’pro-emails,subscr-signup-as-subscr-payment\’,
\’s2member_paypal_proxy_verification\’ => \’e9f05b9bcb49a003178e2b8171ec9ea6\’,
\’s2member_paypal_proxy_return_url\’ => \’\’,
\’txn_type\’ => \’subscr_signup\’,
\’subscr_id\’ => \’I-EHUV52G2MKGN\’,
\’custom\’ => \’corefitnessbyjana.com\’,
\’txn_id\’ => \’I-EHUV52G2MKGN\’,
\’period1\’ => \’0 D\’,
\’period3\’ => \’1 M\’,
\’mc_amount1\’ => \’0.00\’,
\’mc_amount3\’ => \’19.50\’,
\’mc_gross\’ => \’19.50\’,
\’mc_currency\’ => \’USD\’,
\’tax\’ => \’0.00\’,
\’recurring\’ => \’1\’,
\’payer_email\’ => \’111@xxx.com\’,
\’first_name\’ => \’111\’,
\’last_name\’ => \’222\’,
\’option_name1\’ => \’Referencing Customer ID\’,
\’option_selection1\’ => \’22\’,
\’option_name2\’ => \’Customer IP Address\’,
\’option_selection2\’ => \’205.178.182.172\’,
\’item_name\’ => \’COUPON 35% off. ( Now: $19.50 / monthly ) ~ ORIGINALLY: $30.00 USD / Monthly ( recurring charge, for ongoing access to all videos )\’,
\’item_number\’ => \’2\’,
)’,
),
‘s2member_paypal_proxy’ => ‘paypal’,
‘s2member_paypal_proxy_use’ => ‘pro-emails,subscr-signup-as-subscr-payment’,
‘s2member_paypal_proxy_verification’ => ‘e9f05b9bcb49a003178e2b8171ec9ea6’,
)

PHP v5.3.8 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 29.51 MB :: Real Memory 29.75 MB :: Peak Memory 29.56 MB :: Real Peak Memory 29.75 MB
corefitnessbyjana.com/wordpress/?s2member_paypal_notify=1
User-Agent:
array (
‘payment_cycle’ => ‘Monthly’,
‘txn_type’ => ‘recurring_payment_profile_created’,
‘last_name’ => ‘222’,
‘initial_payment_status’ => ‘Completed’,
‘next_payment_date’ => ’03:00:00 May 10, 2012 PDT’,
‘residence_country’ => ‘US’,
‘initial_payment_amount’ => ‘19.50’,
‘rp_invoice_id’ => ‘1336651092:0 D:1 M~corefitnessbyjana.com~2’,
‘currency_code’ => ‘USD’,
‘time_created’ => ’16:58:13 Apr 09, 2012 PDT’,
‘verify_sign’ => ‘AWkT50gtrA0iXnh55b939tXXlAFYA4fD1clv3zO6wRn9ETa5Xfb3nsQR’,
‘period_type’ => ‘Regular’,
‘payer_status’ => ‘unverified’,
‘tax’ => ‘0.00’,
‘payer_email’ => ‘111@xxx.com’,
‘first_name’ => ‘111’,
‘receiver_email’ => ‘555@corefitnessbyjana.com’,
‘payer_id’ => ‘SJUHRQVRWT63Y’,
‘product_type’ => ‘1’,
‘initial_payment_txn_id’ => ‘3A774575CB732301U’,
‘shipping’ => ‘0.00’,
‘amount_per_cycle’ => ‘19.50’,
‘profile_status’ => ‘Active’,
‘charset’ => ‘windows-1252’,
‘notify_version’ => ‘3.4’,
‘amount’ => ‘19.50’,
‘outstanding_balance’ => ‘0.00’,
‘recurring_payment_id’ => ‘I-EHUV52G2MKGN’,
‘product_name’ => ‘COUPON 35% off. ( Now: $19.50 / monthly ) ~ ORIGINALLY: $30.00 USD / Monthly ( recurring charge, for ongoing access to all vide’,
‘ipn_track_id’ => ‘f419d4cc20b9d’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Mon Apr 9, 2012 11:58:37 pm UTC’,
1 => ‘s2Member POST vars verified through a POST back to PayPal®.’,
2 => ‘Transaction type ( `^recurring_?` ), but there is no match to an existing account; so verification of `$_SERVER[“HTTP_HOST”]` was not possible.’,
),
‘subscr_gateway’ => ‘paypal’,
‘custom’ => false,
)

PHP v5.3.8 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 29.46 MB :: Real Memory 29.75 MB :: Peak Memory 29.52 MB :: Real Peak Memory 29.75 MB
COREFITNESSBYJANA.COM/wordpress/?s2member_paypal_notify=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=pro-emails&s2member_paypal_proxy_verification=e9f05b9bcb49a003178e2b8171ec9ea6&s2member_paypal_proxy_return_url=
User-Agent: WordPress/3.3.1; http://COREFITNESSBYJANA.COM/wordpress
array (
‘s2member_log’ =>
array (
0 => ‘Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.’,
1 => ‘If you\’re absolutely SURE that your 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/communicate with your Payment Gateway 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; and 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 => ‘Please see this thread: `http://www.s2member.com/forums/topic/ideal-server-configuration-for-s2member/` for details regarding the ideal server configuration for s2Member.’,
4 => ‘array (
\’s2member_paypal_notify\’ => \’1\’,
\’s2member_paypal_proxy\’ => \’paypal\’,
\’s2member_paypal_proxy_use\’ => \’pro-emails\’,
\’s2member_paypal_proxy_verification\’ => \’e9f05b9bcb49a003178e2b8171ec9ea6\’,
\’s2member_paypal_proxy_return_url\’ => \’\’,
\’txn_type\’ => \’web_accept\’,
\’txn_id\’ => \’10U93795N39740425\’,
\’custom\’ => \’corefitnessbyjana.com\’,
\’mc_gross\’ => \’10.00\’,
\’mc_currency\’ => \’USD\’,
\’tax\’ => \’0.00\’,
\’payer_email\’ => \’333@xxx.com\’,
\’first_name\’ => \’333\’,
\’last_name\’ => \’O\\\\\\\’444\’,
\’option_name1\’ => \’Referencing Customer ID\’,
\’option_selection1\’ => \’20\’,
\’option_name2\’ => \’Customer IP Address\’,
\’option_selection2\’ => \’205.178.182.171\’,
\’item_name\’ => \’$10.00 USD ( for one day access to all videos – reverts to Free Membership after 24 hours )\’,
\’item_number\’ => \’3::1 D\’,
)’,
),
‘s2member_paypal_proxy’ => ‘paypal’,
‘s2member_paypal_proxy_use’ => ‘pro-emails’,
‘s2member_paypal_proxy_verification’ => ‘e9f05b9bcb49a003178e2b8171ec9ea6’,
)

PHP v5.3.8 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 29.46 MB :: Real Memory 29.75 MB :: Peak Memory 29.52 MB :: Real Peak Memory 29.75 MB
corefitnessbyjana.com/wordpress/?s2member_paypal_notify=1
User-Agent:
array (
‘mc_gross’ => ‘10.00’,
‘protection_eligibility’ => ‘Ineligible’,
‘item_number1’ => ‘3::1 D’,
‘payer_id’ => ‘J45G79CXQW8BY’,
‘tax’ => ‘0.00’,
‘payment_date’ => ’17:06:01 Apr 09, 2012 PDT’,
‘payment_status’ => ‘Completed’,
‘charset’ => ‘windows-1252’,
‘mc_shipping’ => ‘0.00’,
‘mc_handling’ => ‘0.00’,
‘first_name’ => ‘333’,
‘mc_fee’ => ‘0.59’,
‘notify_version’ => ‘3.4’,
‘custom’ => ‘corefitnessbyjana.com’,
‘payer_status’ => ‘unverified’,
‘business’ => ‘555@corefitnessbyjana.com’,
‘num_cart_items’ => ‘1’,
‘mc_handling1’ => ‘0.00’,
‘verify_sign’ => ‘AZxbwZ9bPVPFFf7hCCNemacLJwlCAzA6V3pFO4Ks0edo19KDLrZHZ6po’,
‘payer_email’ => ‘333@xxx.com’,
‘mc_shipping1’ => ‘0.00’,
‘tax1’ => ‘0.00’,
‘txn_id’ => ’10U93795N39740425′,
‘payment_type’ => ‘instant’,
‘last_name’ => ‘444’,
‘item_name1’ => ‘$10.00 USD ( for one day access to all videos – reverts to Free Membership after 24 hours )’,
‘receiver_email’ => ‘555@corefitnessbyjana.com’,
‘payment_fee’ => ‘0.59’,
‘quantity1’ => ‘1’,
‘receiver_id’ => ‘UVYGKS2H47KRC’,
‘txn_type’ => ‘cart’,
‘mc_gross_1’ => ‘10.00’,
‘mc_currency’ => ‘USD’,
‘residence_country’ => ‘US’,
‘receipt_id’ => ‘0863-0735-7634-2631’,
‘transaction_subject’ => ”,
‘payment_gross’ => ‘10.00’,
‘ipn_track_id’ => ‘43664852cb6f4’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Tue Apr 10, 2012 12:06: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 ( `cart` ).’,
4 => ‘The `txn_type` does not require any action on the part of s2Member.’,
5 => ‘s2Member Pro handles Cart events on-site, with an IPN proxy.’,
),
‘subscr_gateway’ => ‘paypal’,
)

Posted: Tuesday Apr 10th, 2012 at 9:00 am #10455

This was taken from the PayPal-IPN log – if thats wrong let me know – there is also an API log

Posted: Tuesday Apr 10th, 2012 at 1:43 pm #10481

I hope this leads to the solution.

PayPal’s assessment of our problem with accounts not upgrading:

API program we are using (S2Member) is creating new Profile IDs instead of being open to editing existing IDs. They told us to visit this link and pass info to our developer

https://www.x.com/developers/paypal/documentation-tools/api/updaterecurringpaymentsprofile-api-operation-nvp

But, I expect that there is a very simple fix to this problem. We have clearly not filled in a field correctly when setting up S2Member, allowing Profiles to be updated / edited rather than only created. Can you direct me to where this might be and what it should be set up as.

Posted: Tuesday Apr 10th, 2012 at 3:01 pm #10491

Thanks for the log files.

The entries that have your domain name in uppercase, give an error of mismatch with the domain name you’re using. Could you make sure that you’ve used lowercase in every place you entered the domain name, including your PayPal settings? [hilite mono]COREFITNESSBYJANA.COM[/hilite] -> [hilite mono]corefitnessbyjana.com[/hilite]

And make sure that you don’t add www anywhere, including links, since that’d also be different. Knowledge Base » Don't mix www and without

Try that and see if it solves the problem.

And if you still have the problem, please post the log entries for the new transactions, from every log file you see in the s2member-logs directory. Also, could you post the shortcode you’re using for the pro-form?

Thanks!

Posted: Tuesday Apr 10th, 2012 at 3:11 pm #10497

Thanks Christian – Will do thanks – checking now –

Posted: Tuesday Apr 10th, 2012 at 3:23 pm #10501

PayPal IPN and PDT – We double checked – are both correctly lowercase. So it looks like S2member has changed this to uppercase – do you know where or why? The field are uneditable in S2Member where they appear under PayPal options (intergration)

Posted: Tuesday Apr 10th, 2012 at 3:27 pm #10503

Found it – WordPress auto filled General Settings – have changed to lower case will go and re test

Posted: Tuesday Apr 10th, 2012 at 3:27 pm #10504

It would not be s2Member changing it. Keep checking where it could be uppercase: WordPress settings, PayPal settings, .htaccess, a redirection plugin…

If you can’t find it, try the default theme as a test. If still not, deactivate the other plugins and test, see if the problem goes away with them and, if so,see if you find which caused it.

Posted: Tuesday Apr 10th, 2012 at 3:28 pm #10505

Ah, cool, glad you found it. (I was posting when you wrote your reply, sorry I didn’t see it before.)

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.