Lee,

I've been checking out the LM_PayPal module and while just about everything is working fine, I am having one little problem.

Once the user has completed the payment process on the PayPal site, and they click the "return to merchant" button, the user is always redirected to the home page of the site instead of "lm_paypal/subscriptions_inprogress" or whatever is defined in the LM_PayPal Subscriptions Settings admin area.

I can't figure out why this is happening.

Does LM_PayPal require that clean_urls be "on"?

I'm using Drupal 5.1.

Thanks in advance,
-mike

Comments

LeeMcL’s picture

Assigned: Unassigned » LeeMcL

I must confess. I've never tried lm_paypal on a site without clean urls enabled!

I just checked and yes they do rely on clean urls.

I'll fix this for the next release. In the meantime you could fix this locally by going to admin/settings/lm_paypal_donations and /lm_paypal_subscriptions and change the urls from, for example:

WITH clean urls:

/lm_paypal/donations_thanks

WITHOUT clean urls:

?q=lm_paypal/donations_thanks

Lee

ultimike’s picture

Lee,

Thanks for the info, but I don't think your fix does the trick. Looks like there is some URL-encoding going on, because when I change the URL in the LM_PayPal subscription settings, the "get" parameter that PayPal is trying to redirect to is:

?q=%3Fq%3Dlm_paypal/subscriptions_inprogress

No worries though, I did manage to get clean urls working, so I should be fine for now, but you'll probably want to fix it anyway.

Thanks for the great module!
-mike

LeeMcL’s picture

Thanks for pointing it out.

I've improved the code and it works fine on my test site with and without clean url's enabled

Lee