Post by lukeketchum1 » Thu Feb 08, 2018 11:01 pm

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

Active Member

Posts

Joined
Tue Jan 23, 2018 12:30 am

Post by tlmartin » Fri Feb 09, 2018 5:09 am

Hi, did you get this resolved? I;m having this issue - only using paypal express for a recuring payment

Newbie

Posts

Joined
Sun Dec 20, 2015 8:52 pm

Post by Fabienlolo » Sat Jul 28, 2018 5:25 am

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

New member

Posts

Joined
Fri Jun 29, 2018 7:24 am
Location - Q.Roo, Mexico

Post by Fabienlolo » Sun Jul 29, 2018 4:17 am

Hi,
i realised this is an issue that has been covered by different topics. So, i solved it thanks to 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
Last edited by Fabienlolo on Tue Feb 07, 2023 10:39 pm, edited 1 time in total.

New member

Posts

Joined
Fri Jun 29, 2018 7:24 am
Location - Q.Roo, Mexico

Post by Fabienlolo » Thu Aug 02, 2018 7:11 am

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

New member

Posts

Joined
Fri Jun 29, 2018 7:24 am
Location - Q.Roo, Mexico

Post by straightlight » Thu Aug 02, 2018 9:19 am

Code: Select all

environment: 'sandbox'
should be:

Code: Select all

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

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by blocks1 » Sat Mar 16, 2019 10:53 pm

which file to edit??

New member

Posts

Joined
Thu Feb 08, 2018 11:14 am

Post by straightlight » Sun Mar 17, 2019 12:46 am


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by MasterCATZ » Fri Jun 21, 2019 7:28 am

upgraded to Version 3.0.3.2 and not Paypal Express is broken all over again , ugh

Newbie

Posts

Joined
Mon May 13, 2019 4:58 pm

Post by straightlight » Fri Jun 21, 2019 9:27 am

I replied to your post on the provided topic above.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by aoe123 » Fri Dec 03, 2021 10:22 pm

hi there,

i also have a problem with paypal express in opencart 3.0.3.7.
a few customers cant pay via paypal. they try but it fails coz the paypal window close or its just pending and pending, so many order go under missing orders.
yes, i also added the ipn url and it doesnt help at all.

we dont want to lose orders and we also dont want to message all this customers to kindly pay via direct paypal payment by hand.

is there any fix for this annoying problem?

thanks

EDIT:

i found the fix :-)

Paypal Express fix
upload/catalog/view/theme/default/template/extension/payment/pp_express.twig

{% if payment_pp_express_incontext_disable != 1 %}
<div class="buttons">
<div class="float-right">
<a id="button-confirm" href="{{ continue }}"></a>
</div>
</div>
<script type="text/javascript"><!--
window.paypalCheckoutReady = function () {
paypal.checkout.setup('{{ username }}', {
container: 'button-confirm',
environment: '{{ paypal_environment }}'
});
};
//--></script>
<script src="//www.paypalobjects.com/api/checkout.js" async></script>
{% else %}
<div class="buttons">
<div class="float-right">
<a href="{{ continue }}" class="btn btn-primary" id="button-confirm" data-loading-text="{{ text_loading }}">{{ button_continue }}</a>
</div>
</div>
<script type="text/javascript"><!--
$('#button-confirm').on('click', function() {
$('#button-confirm').button('loading');
});
//--></script>
{% endif %}

UNFORTUNATLEY THIS FIX DOES NOT FIX THIS ANNOYING ISSUE!
STILL SOME CUSTOMERS CAN'T PAY VIA PAYPAL AND WE LOSE FUCKING ORDERS AND CUSTOMERS!
CAN ANYONE HELP PLEASE?!

New member

Posts

Joined
Tue Oct 15, 2019 3:30 pm
Who is online

Users browsing this forum: sidclel and 84 guests