Page 1 of 1

OpenCart 3 Paypal Express checkout not working

Posted: Thu Feb 08, 2018 11:01 pm
by lukeketchum1
Hi all, I am still trying to get my first install of opencart working and unfortunately after 2 weeks I'm not doing particularly well :-(

I had it so both registered users and guests could check out by Paypal standard, so that was at least working at one point (Though there seems to be terrible cache problems of some kind that I'm yet to resolve).

The issue now is that for PayPal express checkout, the buyer clicks the paypal express button at the end of the process of checking out, the paypal login box pops up briefly but then disappears and doesn't allow you to log into paypal to complete the transaction?

Any ideas on how to fix this? any help appreciated.

Best regards

Luke

Re: OpenCart 3 Paypal Express checkout not working

Posted: Fri Feb 09, 2018 5:09 am
by tlmartin
Hi, did you get this resolved? I;m having this issue - only using paypal express for a recuring payment

Re: OpenCart 3 Paypal Express checkout not working

Posted: Sat Jul 28, 2018 5:25 am
by Fabienlolo
OC Version: 3.0.2.
Theme: default
Your query: OpenCart 3 Paypal Express checkout instant closing after pop up.
A link to your site: www.vacacionandocancun.com/tours/

Hi guys, this 2018, 7th of July. Same issue. Live not working, Sandbox working though.
Any solution?
Thanks for your help.
Fabien

[SOLVED] Re: OpenCart 3 Paypal Express checkout not working

Posted: Sun Jul 29, 2018 4:17 am
by Fabienlolo
Hi,
i realised this is an issue that has been covered by different topics. So, i solved it because of this topic viewtopic.php?t=186887 with straightlight » Tue Dec 12, 2017 6:38 pm post where a fix in 3 files is suggested or a reinstall.
Fix was enough for me, paypal express checkout live window popup and stay still. Then i just had to follow paypal steps just like the sandbox version.
The only difference now is that my checkout express button in on the left side instead of right. No big deal for me here.
thank you all for your support.
This issue has been a good training in terms of search for me. But i believe that could lead to some specific category as some issues just comeback in different topics. I guess this issue will be fixed in next OC version, although it seems that it was already exisiting in different previous versions.
But don't get me wrong, i am just on the learning curve and i am happy i coud finally find an answer on this forum.
Thank you all for your time,
Fabien. O0

Re: OpenCart 3 Paypal Express checkout not working

Posted: Thu Aug 02, 2018 7:11 am
by Fabienlolo
For some more details,
i have an answer from paypal after i sent the error log in a ticket:
from Paypal Merchant Technical Support:
This appears to be an integration or programming problem inside OpenCart. Testing your website, we see the following code appears on the checkout page's HTML:
<script type="text/javascript"><!--
window.paypalCheckoutReady = function () {
paypal.checkout.setup('-------------_api1.gmail.com', {
container: 'button-confirm',
environment: 'sandbox'
});
};
//--></script>
<script src="//www.paypalobjects.com/api/checkout.js" async=""></script>

Note that the environment is "sandbox" in that part of the code. However, the window that the button is opening is for live mode (www.paypal.com, not www.sandbox.paypal.com ). This is what causes the window to close after opening, and we see this message in the Console error log:
The integration's code needs to specify 'production' everywhere instead of 'sandbox', for use in production mode.
Thank you,
Preston
MTS
This just confirming what i read in ywc6xrlnf58asnha » Thu Dec 28, 2017 12:49 am post from topic viewtopic.php?f=202&t=201981, there is an environment issue in original OC 3.0.2 that can be fixed, see previous post, see same topic viewtopic.php?f=202&t=201981

Re: OpenCart 3 Paypal Express checkout not working

Posted: Thu Aug 02, 2018 9:19 am
by straightlight

Code: Select all

environment: 'sandbox'
should be:

Code: Select all

environment: '{{ environment }}'
as already addressed on the other topic above.

Re: OpenCart 3 Paypal Express checkout not working

Posted: Sat Mar 16, 2019 10:53 pm
by blocks1
which file to edit??

Re: OpenCart 3 Paypal Express checkout not working

Posted: Sun Mar 17, 2019 12:46 am
by straightlight

Re: OpenCart 3 Paypal Express checkout not working

Posted: Fri Jun 21, 2019 7:28 am
by MasterCATZ
upgraded to Version 3.0.3.2 and not Paypal Express is broken all over again , ugh

Re: OpenCart 3 Paypal Express checkout not working

Posted: Fri Jun 21, 2019 9:27 am
by straightlight
I replied to your post on the provided topic above.