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
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
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
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
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.
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.
Last edited by Fabienlolo on Tue Feb 07, 2023 10:39 pm, edited 1 time in total.
For some more details,
i have an answer from paypal after i sent the error log in a ticket:
i have an answer from paypal after i sent the error log in a ticket:
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=201981from 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
Code: Select all
environment: 'sandbox'
Code: Select all
environment: '{{ environment }}'
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
These files: viewtopic.php?f=201&t=210578
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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
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?!
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?!
Who is online
Users browsing this forum: Semrush [Bot] and 325 guests