Page 1 of 2

PayPal Express checkout login prompt disappears?!

Posted: Thu Aug 24, 2017 2:33 am
by dupfold
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

Re: PayPal Express checkout login prompt disappears?!

Posted: Sun Aug 27, 2017 4:37 am
by dharam81
I have faced the same issue so I disabled the In-Context Checkout in checkout setting for module.

this is definitely bug

Re: PayPal Express checkout login prompt disappears?!

Posted: Thu Aug 31, 2017 10:17 am
by cesarlillo
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.

Re: PayPal Express checkout login prompt disappears?!

Posted: Thu Aug 31, 2017 10:48 am
by cesarlillo
As suggested I disabled the In-Context Checkout and is working passed the issue

Re: PayPal Express checkout login prompt disappears?!

Posted: Fri Sep 01, 2017 1:13 am
by dharam81
yes to module need to update to work with In-Context Checkout

bug need to fix

Re: PayPal Express checkout login prompt disappears?!

Posted: Wed Dec 13, 2017 2:00 am
by bonesddrummer
Having the same issue has anybody resolved this ?

Re: PayPal Express checkout login prompt disappears?!

Posted: Wed Dec 13, 2017 2:38 am
by straightlight
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.

Re: PayPal Express checkout login prompt disappears?!

Posted: Mon Dec 25, 2017 5:36 am
by ywc6xrlnf58asnha
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?

Re: PayPal Express checkout login prompt disappears?!

Posted: Mon Dec 25, 2017 9:27 pm
by straightlight
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?

Re: PayPal Express checkout login prompt disappears?!

Posted: Wed Dec 27, 2017 11:54 am
by ywc6xrlnf58asnha
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?

Re: PayPal Express checkout login prompt disappears?!

Posted: Wed Dec 27, 2017 11:59 am
by straightlight
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.

Re: PayPal Express checkout login prompt disappears?!

Posted: Wed Dec 27, 2017 2:19 pm
by ywc6xrlnf58asnha
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.

Re: PayPal Express checkout login prompt disappears?!

Posted: Wed Dec 27, 2017 11:21 pm
by straightlight
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

Re: PayPal Express checkout login prompt disappears?!

Posted: Thu Dec 28, 2017 8:49 am
by ywc6xrlnf58asnha
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.

Re: PayPal Express checkout login prompt disappears?!

Posted: Thu Dec 28, 2017 9:41 am
by straightlight
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?

Re: PayPal Express checkout login prompt disappears?!

Posted: Thu Dec 28, 2017 10:14 am
by ywc6xrlnf58asnha
I think what fixed it was clearing opencart cache. Seems to be working properly after that. Appreciate the assistance.

Re: PayPal Express checkout login prompt disappears?!

Posted: Thu Dec 28, 2017 10:20 am
by straightlight
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.

Re: PayPal Express checkout login prompt disappears?!

Posted: Tue May 01, 2018 5:05 pm
by opensab677
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

Re: PayPal Express checkout login prompt disappears?!

Posted: Wed May 02, 2018 6:41 pm
by opensab677
I have understood. Solved!

Re: PayPal Express checkout login prompt disappears?!

Posted: Wed Aug 22, 2018 10:08 am
by jseal1987
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.