Not working - No account created

13 replies [Last post]
howtobox
Offline
Joined: 12/17/2009
Status: 
Answered

Alright, I'm having a very hard time getting the membership suites module to work.  I've created a membership plan and am have tried testing with Paypal Sandbox to no avail.  I've even had a couple of customers sign up and their accounts are not created either - had to do it manually after they notified me.  

Everything works as it should going to Paypal - but after payment - member returns to site and isn't logged in and account is not created.  Basically it looks as though nothing is being sent back from Paypal.  I've even tried sending an IPN request to the mysite.com/paypal/backend to see if something shows up in the logs - nothing.  It's as if Paypal is not communicating anything back to my site.

I've put everything to the defaults - default thank you page as I noticed it says one has to use it in order for new user to automatically be logged in.  Nothing.

Not sure what else I can try to make this work.  Any suggestions?  I'm using Drupal 6.15 and 6.x-5.8 of your module.

Thanks.

howtobox
Offline
Joined: 12/17/2009
Another error

Also getting this other error when I try to access the charts - obviously something else is already loading it... probably not related to my initial problem, but included the info here just in case.

Fatal error: Cannot redeclare class bar in /home/mysite/public_html/modules/ms_charts/includes/ofc_bar_glass.php on line 52
 

Leighton Whiting
Offline
Joined: 06/02/2009
Howtobox, Could you create an

Howtobox,
Could you create an account for me with Admin Privileges so I can take a look at your settings? One other person had similar problems, and it ended up being a problem with their PayPal account not being set up properly. Are you using a Business or Premier account? Some features are only available to Business or Premier accounts, so that may be causing a problem.

The email address you can use for an account is support@moneyscripts.net

Sincerely,
Leighton Whiting

howtobox
Offline
Joined: 12/17/2009
On its way

Account has been setup - details should be arriving in your email shortly.  I have a business account with Paypal.  I have one of the membership plans currently setup to use the sandbox.  Let me know if you need me to do anything else.  Thanks.

P.S.  Just confirming - my Paypal business account currently has auto return turned off and IPN turned off as well (default setup).

Leighton Whiting
Offline
Joined: 06/02/2009
Howtobox, I noticed one red

Howtobox,
I noticed one red flag right off the bat: You still had the older 'Paypal Subscriptions' module enabled in addition to the newer Membership Suite module. The problem this causes is the same IPN path is used by the older and the newer module, so the IPNs were probably being intercepted by the older module, which was causing the problems. I disabled the older modules and did a test.

Then I got the following error on the thankyou page after returning from PayPal:

  1. Parse error: syntax error, unexpected T_ELSE in modules/ms_membership/ms_membership-thankyou.tpl.php on line 37

Did you make any changes to the default ms_membership-thankyou.tpl.php file? Can you check it for errors? Looking at the logs, it appear that the user was created successfully and assigned the role. I think if you can fix the thank-you page error, it should be working.

Sincerely,
Leighton Whiting

howtobox
Offline
Joined: 12/17/2009
Making Some Headway

Thanks for that Leighton, that has helped a bit - at least a user account is being created and transaction recorded.  And, correct, I did modify the thank-you page - inserted some stuff to print variable based on what I was reading here in forums...anyways, changed it back.

But still having some problems:

1.  User account is being created, but it isn't getting the role member is signing up for (I'm using the User Types module).  I have it setup where user chooses between one of five roles on registration.  Once user account is created they are assigned an additional role (First time) by the rules module in order to send them to a pageroute.  Only role being assigned is the First Time role (not sure if it's being done by your module or the rules module...) but at any rate, the originally chosen account type role isn't getting attached.

2.  Auto login isn't working.  I tried it with the default thank you page and a different url - no auto login on either.

Your admin account is still active if you feel like helping me out with these issues as well.  Hopefully I'm not missing something simple like what you pointed out last time.

Thanks.

Leighton Whiting
Offline
Joined: 06/02/2009
Howtobox, 1) The user types

Howtobox,
1) The user types module has a strange way of doing things and although I provide limited integration, it won't work like how you are wanting it to. What I would suggest is creating a different membership plan for each role you want to add, and then set each plan to show on the correct user_types registration page. That was what I intended when I provided integration.

2) Looking at the logs, it looks like the variables aren't being returned. Can you look over the settings one more time in your paypal account? I'm attaching how mine look below.

Sincerely,
Leighton Whiting

AttachmentSize
website_payment_preferences.PNG 62.79 KB
IPN_Settings.PNG 26.38 KB
Leighton Whiting
Offline
Joined: 06/02/2009
Howtobox, Update on the Login

Howtobox,
Update on the Login thing, I tried it using my sandbox account in the plan, and it worked, auto-logged me in. So it must be some setting in your account. One thing you can check is if the payments are set to being completed by default or not. Sandbox accounts usually have 'Pending' as the default, but it should be set as completed.

Sincerely,
Leighton

Terrence
Offline
Joined: 01/20/2010
Sandbox Setting Payment 'Completed' vs 'Pending'

Leighton,

In our email exchange on Saturday, you suggested that I check this setting on my Sandbox account as well. I can't find anyplace where this is set explicitly. The only setting I found was in the Test Accounts listing where "Payment Review" can be enabled or disabled. Is that the setting you are referring to?

I have all accounts set to 'Disabled' even though it appears that such a setting really doesn't simulate live transactions accurately. The Sandbox User Guide at the top of Chapter 8, says:  "On the live site, payment reveiw is always active, which means that PayPal reviews payments automatically for various risk factors. In the Sandbox, all transactions pass payment review by default. If you want to simulate payment review, you can enable it from the Test Accounts page..."

All my test accounts had this disabled by default and I haven't even tried running with Payment Review enabled. Nevertheless, Auto Login doesn't work for me on recurring transactions. It does, however, work on one-time payment transactions. I've noticed that I land on a different looking page at PayPal depending on whether the transaction is recurring or one-time.

Buying a recurring payment plan DOES NOT work with auto login and the payment link directs me to:
https://www.sandbox.paypal.com/cgi-bin/webscr

Buying a one-time payment plan DOES work with auto login and the payment link directs me to (**** is long string of characters):
https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=****&...

I notice that one-time payment goes to sandbox.paypal.com/us and includes additional parameters, while the recurring payment URL drops the /us and provides no parameters. NOTE: The /us doesn't seem to have any relationship to whether I use US$ or CAD$ in my plan definition. It's the recurring payment factor that makes the difference.

I conclude, in my case anyway, that the problem has more to do with the type of transaction and where I'm getting directed to at PayPal rather than Sandbox account settings. Any suggestions where I would look for the setting you refer to, or am I looking at the right setting?

Any thoughts about the differing URLs? Is that normal behavior?

As I mentioned on Sat. I'll probably just go without Auto Login for now, so this post is more to contribute to the current thread in the hope that later on I can come back to try to implement Auto Login.

Cheers,
Terrence

 

 

 

howtobox
Offline
Joined: 12/17/2009
One Step Closer

Leighton, I've now got the user account being created with the correct roles through the direction you provided.  So, the accounts are functional and I'm in business - so that's good.

While everything is good to go now - I'd still like to get the auto login working.  I've checked my settings vs your screenshots and they are identical.  Can't think of any other setting that could be causing the issues.  Like the poster before me, I have payment review disabled in my Sandbox.

djoulle
Offline
Joined: 01/14/2010
In my case an other Durpal

In my case an other Durpal module, "login destination", was disabling the autologin feature. Check also that you don't have any custom "thank you" page in your membership settings (leave blank), otherwise it wont work neither.

Julien

Terrence
Offline
Joined: 01/20/2010
My tests were on fresh install

Thanks Julien, for mentioning the conflict with "Login Destination". In my testing I thought I had a similar conflict with different modules, so I started over with a fresh installation, no other modules enabled, and only the absolutely necessary changes to the default settings. It was in that testing that I found that only the recurring payment plans failed to automatically login.

I had troubles setting up my PayPal Sandbox account initially (a couple months ago) and it appeared that they were making changes to Canadian account creation that didn't seem to affect US customers. After a couple weeks, everything worked perfectly in Sandbox account creation and I was able to move ahead. The reason I mention this is that it seems like PayPal Sandbox behaves differently for Canadian merchants (I'm referring to the master Sandbox account and not the test accounts) and I wonder if that's why I'm getting different results.

For now, I've given up on Auto Login and free accounts (which worked with Auto Login but threw errors) in order to get my site launched but I will continue testing from my dev site to try to get these features working in the hopes that I can improve my live site later.

If anyone else is working from Canada I'd be interested to know if you've had similar problems or if I'm off on a tangent.

Terrence

howtobox
Offline
Joined: 12/17/2009
I'm from Canada

Terrence, I'm from Canada as well - so perhaps that is why I'm also having problems getting auto login to work...  Like you, I've given up on it for now, as I've got other things to deal with and my site is functioning - just believe it could be functioning better at some point.

Terrence
Offline
Joined: 01/20/2010
Other Canadian Problems?

HowToBox,

Thanks for the reply re: Canadian location. I'm glad to hear your site is functional. I wish you great success with it!

I'm curious if you've also noticed problems with the dollar amount showing up in the confirmation emails that MS Membership Suite sends.

The behavior I'm seeing is that the [amount] token always gets replaced with a dollar sign and a blank space whenever the transaction is a recurring payment in CAD$. If the transaction is a one-time payment in CAD$, the [amount] token always gets replaced with the proper amount.

On the other hand, if the transaction is in US$,  the [amount] token always works and gets replaced with the proper amount. This is true with both recurring payment plans or one-time payment plans in US$.

Have you noticed anything similar?

Cheers,
Terrence

*******************************

PS to Leighton,

I'm seeing some interesting relationships between Auto Login problems, [amount] token problems, differences between CAD$ and US$ transactions, and the PayPal Sandbox URIs that these transactions are handled through. The URIs involved are not just the landing page, but also how they change after login and after payment. There is a definite pattern emerging that involves /us and /ca sub-folders in the URIs. It gets a little complex so I think I'd be better starting a new thread to get into the details on that. However, that will have to wait until after I get my site live.

If you do have a chance to take a look at possible connections between currencies and PayPal Sandbox workflows I think there may be some clues there regarding Auto Login and [amount] token problems. Personally, I have workarounds and adaptations in my plans that will allow me to proceed so I'm not in a panic. I know you've got your hands full with new coding right now.

All the best,
Terrence

Twitter Feed