Bug (?) in Oxid PayPal module

Hi,

i had a problem recently with the official Oxid PayPal module (http://exchange.oxid-esales.com/de/OXID-Produkte/OXID-eFire-Extensions/OXID-eFire-Extension-PayPal-3-2-2-for-4-9-x-Stable-CE-4-4-x-4-9-x.html).

When opening the PayPal checkout flow, [B]sometimes[/B] the user would get redirected to the PayPal homepage instead of the actual checkout.

I presented the problem to an engineer at PayPal and he told me i was using the wrong URL. So i had to change two lines in the following file:

/oe/oepaypal/core/oepaypalconfig.php

Line 55 (old): protected $_sPayPalUrl = 'https://www.paypal.com/webscr';
Line 55 (new): protected $_sPayPalUrl = 'https://www.paypal.com/cgi-bin/webscr';

and the same for line 49 (“cgi-bin/” missing).

Now everything works flawlessly!

I hope this helps someone… It’s a little weird… The problem just came up some weeks ago, after it was running without problems for some years.

Hey @fschittig,

thanks a lot for this valuable information, most likely this saved a lot of head aches. We were already about to investigate this issue as sometimes tests were failing. Also, I’d like to engage you to directly send a pull request the next time you encounter an issue like that :wink:

Additionally, I will try to tap a direct source at PayPal in order to get this kind of information more pro-active and earlier if they change their API.

Cheers!

Thanks we have exact the same issue.
Will try it out and give some feedback!

Good Morning!

Marco…any news?

Cheerio! - Zoidberg

Auf GitHub findet man bereits einen Commit dazu: https://github.com/OXID-eSales/paypal/commit/b52df8255d6d8a10441d8095e0310df94445584a

Hoi,

Martin, lang detection problems? :slight_smile:
@martin.wegele mentioned that a commit for it can already be found on GitHub:

As far as I could find out from the devs, all tests are running through properly with this adaptation according to PayPal’s (recently changed) sandbox API documentation.

Cheers!