I have been unable to get the sandbox to work at all... More detail on problem.
I have subsequently found that the PayPal sandbox does not support the https://www.sandbox.paypal.com/xclick/ URL recommended for the PayPal processing URL in the PayPal settings.
It needs to be https://www.sandbox.paypal.com/cgi-bin/webscr with the following variable in the query string 'cmd=_xclick' As far as I can tell both URLs are supported in a 'LIVE' paypal account, so the problem only shows up in the sandbox environment. I found this out in message 6 this forum.
I have made the following patch, it replaces the default url with the new one, and adds the cmd=x_click to the array that is turned into the query string for PayPal.
Please try it. It works for me in the UK.
P.S. I figured the issue was critical, since I cannot test the store without the fix.
Drew Reece
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | paypal_sandbox_url_fix_4.7.patch | 2.69 KB | drew reece |
| #2 | paypal_sandbox_url_fix_5.3_v2.patch | 3.57 KB | drew reece |
| paypal_sandbox_url_fix.patch | 2.87 KB | drew reece |
Comments
Comment #1
vikingew commentedJust updating the status so it gets the proper attention. This issue is also relevant for v4-dev btw, and I will test it there but notice that this patch will not apply on v4, changes need to be done manually unless someone role a patch (reminding myself to get around teaching myself to do it).
On another side note, this should also apply for live url I believe. As I understand it the url changed for both live and sandbox but backward compatibility was kept only for live - but for how long?
Another issue, but should probably be posted in a new one, is that settings for live and sanbox should really have their own fields. As it is now you have to change not only url but also email etc.
Comment #2
drew reece commentedI'm new to Drupal, so please check what I have done :) I do not have an install of 4.7, but I looked at the 4.7 EC_paypal.module and it seems the changes should be minor. I made a version for the paypal.module in 4.7 and 5.3. Can you test the 4.7 version yettyn?
The new 5.3(v2) patch sets the default URL to https://www.paypal.com/cgi-bin/webscr instead of the URL for the sandbox. I'm unsure whether the sandbox URL should be the default to encourage testing ?
I do agree with yettyn, the PayPal settings should have the option to switch between the test and live site settings.
I almost gave up on Ecommerce for Ubercart.
The 5.3v2 is attached here.
Comment #3
drew reece commentedThis is the patch for Drupal 4.7
Comment #4
vikingew commentedSorry I don't have any 4.7 to test on, I am pretty new to Drupal myself, have built and manage a site for my mother in law (not using EC though) and now building my own site which is more complex. Not new to coding though and I am building my site on D5-dev and EC-v4-dev as I am counting on thing will progress to next stable level before I am done :-)
I think it's a good approach encouraging testing by setting sandbox as default, so I think you should change that back.
Unfortunately I can't test any of your patches as this seem to have changed dramatically in v4, although the issue seem to remain. I am trying to figure out something about that right now, but your patches are surely appreciated by others.
I am pretty sure though that separate settings for sandbox and live, will not make it into v3 of EC, but I will try to put together something for v4.
Comment #5
gordon commentedFixed in v4
Comment #6
(not verified) commented