Post by dupfold » Thu Aug 24, 2017 2:33 am

Hello

I've enabled PayPal Express checkout and during test purchase which I click to pay, the PayPay prompt box appears briefly, but then closes again with a second. Why is it doing this and how do I fix it please?

I've tested 'PayPal Payments Standard' and that works fine, but I'd like to get the express checkout working.

Thank you

New member

Posts

Joined
Wed Oct 21, 2015 3:42 am

Post by dharam81 » Sun Aug 27, 2017 4:37 am

I have faced the same issue so I disabled the In-Context Checkout in checkout setting for module.

this is definitely bug

Active Member

Posts

Joined
Mon Apr 30, 2012 8:26 pm

Post by cesarlillo » Thu Aug 31, 2017 10:17 am

This is to confirm that I have the same issue that during paypal checkout the paypal loging window comes up but shortly after it disappears.

Newbie

Posts

Joined
Mon Aug 07, 2017 10:11 pm

Post by cesarlillo » Thu Aug 31, 2017 10:48 am

As suggested I disabled the In-Context Checkout and is working passed the issue

Newbie

Posts

Joined
Mon Aug 07, 2017 10:11 pm

Post by dharam81 » Fri Sep 01, 2017 1:13 am

yes to module need to update to work with In-Context Checkout

bug need to fix

Active Member

Posts

Joined
Mon Apr 30, 2012 8:26 pm

Post by bonesddrummer » Wed Dec 13, 2017 2:00 am

Having the same issue has anybody resolved this ?

Newbie

Posts

Joined
Fri Apr 01, 2016 5:26 pm

Post by straightlight » Wed Dec 13, 2017 2:38 am

dupfold wrote:
Thu Aug 24, 2017 2:33 am
Hello

I've enabled PayPal Express checkout and during test purchase which I click to pay, the PayPay prompt box appears briefly, but then closes again with a second. Why is it doing this and how do I fix it please?

I've tested 'PayPal Payments Standard' and that works fine, but I'd like to get the express checkout working.

Thank you
Make sure by enabling the test mode and disabling it for this payment module that the following fix is involved:

- https://github.com/opencart/opencart/bl ... press.twig
- https://github.com/opencart/opencart/bl ... xpress.php
- https://github.com/opencart/opencart/bl ... xpress.php

Reinstallation of the module might be required:

- https://github.com/opencart/opencart/bl ... xpress.php
- https://github.com/opencart/opencart/bl ... xpress.php
- https://github.com/opencart/opencart/bl ... xpress.php
- https://github.com/opencart/opencart/bl ... order.twig
- https://github.com/opencart/opencart/bl ... erred.twig
- https://github.com/opencart/opencart/bl ... earch.twig
- https://github.com/opencart/opencart/bl ... ction.twig

- https://github.com/opencart/opencart/bl ... /common.js
- https://github.com/opencart/opencart/bl ... /common.js

Otherwise, it is still considered as sandbox even though you make the change. I would even suggest to change that entire file noticing if it will resolve the issue.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member
Online

Posts

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

Post by ywc6xrlnf58asnha » Mon Dec 25, 2017 5:36 am

Did straightlight's suggestion of reinstalling express checkout work for anyone? Or is there another solution? I have this same issue and would like to not redirect away from the website for payment.

On a similar note, how do you generate sandbox username/password and signatures within the paypal website itself and not by using opencart quick setup configure sandbox button?

New member

Posts

Joined
Mon Dec 04, 2017 11:32 am

Post by straightlight » Mon Dec 25, 2017 9:27 pm

Did straightlight's suggestion of reinstalling express checkout work for anyone? Or is there another solution?
Well ... did you tried the solution noticing the results?

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member
Online

Posts

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

Post by ywc6xrlnf58asnha » Wed Dec 27, 2017 11:54 am

Yes I've tried it, but it doesn't work for me. I am confused by "Make sure by enabling the test mode and disabling it for this payment module".

On a similar note, how do you generate sandbox username/password and signatures within the paypal website itself and not by using opencart quick setup configure sandbox button?

New member

Posts

Joined
Mon Dec 04, 2017 11:32 am

Post by straightlight » Wed Dec 27, 2017 11:59 am

Yes I've tried it, but it doesn't work for me. I am confused by "Make sure by enabling the test mode and disabling it for this payment module".
In this case, it ain't because it doesn't work for you. It is rather because no prior question was asked regarding where exactly would the test mode be found in the OC admin. You need to go to the admin - > extensions - > extensions - > payments (x) - > PayPal Express Checkout - > Edit. In the form, change from Live or Production to: Test or Sandbox.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member
Online

Posts

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

Post by ywc6xrlnf58asnha » Wed Dec 27, 2017 2:19 pm

The question is that the live production version does not work. As originally described in this thread, the paypal window immediately disappears after the checkout button is clicked. The fix you suggested did not work for me which is why I asked if anyone had success with it.

I don't have sandbox mode enabled, because I don't know how to get sandbox credentials (PayPal API Sandbox Username / Password, and PayPal API Sandbox Signature) within the PayPal.com website itself. This is a side issue that is on a related note, but not the same question. It may have caused confusion.

New member

Posts

Joined
Mon Dec 04, 2017 11:32 am

Post by straightlight » Wed Dec 27, 2017 11:21 pm

The question is that the live production version does not work. As originally described in this thread, the paypal window immediately disappears after the checkout button is clicked. The fix you suggested did not work for me which is why I asked if anyone had success with it.
See if this solution resolves the issue with Sandbox options: https://github.com/opencart/opencart/pull/5983
I don't have sandbox mode enabled, because I don't know how to get sandbox credentials (PayPal API Sandbox Username / Password, and PayPal API Sandbox Signature) within the PayPal.com website itself. This is a side issue that is on a related note, but not the same question. It may have caused confusion.
Instructions on how to create a sandbox account with PayPal: https://www.youtube.com/watch?v=gNr2WmhEjWE

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member
Online

Posts

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

Post by ywc6xrlnf58asnha » Thu Dec 28, 2017 8:49 am

It does work in sandbox mode. So does in-context only work in sandbox mode and not production mode? Its nice it works in sandbox, but ultimately it's only useful in production mode. Thanks.

Edit: to clarify - I have changed environment: 'sandbox' to environment: '{{ environment }}', but paypal login window still disappears. Browser cache has been cleared.

New member

Posts

Joined
Mon Dec 04, 2017 11:32 am

Post by straightlight » Thu Dec 28, 2017 9:41 am

Right before the PayPal login window disappears, ensure to monitor the events from the developers kit of your browser by hitting F12 once. Then, go to the console tab. Do you see additional events showing when the PayPal login window disappears?

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member
Online

Posts

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

Post by ywc6xrlnf58asnha » Thu Dec 28, 2017 10:14 am

I think what fixed it was clearing opencart cache. Seems to be working properly after that. Appreciate the assistance.

New member

Posts

Joined
Mon Dec 04, 2017 11:32 am

Post by straightlight » Thu Dec 28, 2017 10:20 am

You made the change to {{ environment }} variable but did not cleared the OC cache, that is why. In other words, the solution above does work since. Thanks for the feedback.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member
Online

Posts

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

Post by opensab677 » Tue May 01, 2018 5:05 pm

I have this problem with Paypal Express Checkout.
So I don't understand how to fix it
Replacing code into files from github or configuring sandox?
Should I move something from this https://prnt.sc/jcadyo ?
thanks

New member

Posts

Joined
Mon Sep 04, 2017 7:54 pm

Post by opensab677 » Wed May 02, 2018 6:41 pm

I have understood. Solved!

New member

Posts

Joined
Mon Sep 04, 2017 7:54 pm

Post by jseal1987 » Wed Aug 22, 2018 10:08 am

Hello :)

I have replaced the 2 pp_express.php files in their 2 respective directories, replaced the provided pp_express.twig contents in that file in its given directory, and i cleared the cache, but the paypal window still closes for me. I did disable context and it works by loading paypal in the same tab as the cart was in, which technically works, but if the context menu will allow them to stay on my page, that would be preferred.

Is there something more i can try? who got this solved and what did you do to fix it? i just installed express checkout and set it up, have never done sandbox, and haven't tried a full reinstall of the pp express module/extension as i haven't done anything extreme to see the need to reinstall it. however, i will reinstall if i have to.

Thank you in advance for all your efforts, hard work, for connecting here and helping people and a huge shoutout to all the coders who have made opencart a reality. also special thanks to straightsight, i have read MANY of your posts/comments here and you are an exemplary human.

Newbie

Posts

Joined
Tue Aug 21, 2018 12:50 pm
Who is online

Users browsing this forum: No registered users and 8 guests