PayPal Checkout opening new tab and not returning the user to the website

  • Posts: 32
  • Thank you received: 2
  • Hikaserial Subscription Hikashop Business
4 months 3 weeks ago #361830

-- url of the page with the problem -- : www.winescholarguild.com
-- HikaShop version -- : 5.0.2
-- Joomla version -- : 4.4.0
-- PHP version -- : 8.2
-- Browser(s) name and version -- : Chrome

Hi,

we have an problem with the HikaShop Paypal Checkout payment plugin, specifically with "PayPal" payment option.

When the user clicks Finish at the last checkout step, PayPal shows two options:

- PayPal
- Credit Card

If they choose CreditCard, the form loads dynamically on the same page, and that part is fine.

But if they choose "PayPal", it opens a new tab for PayPal payment.

Once the payment is made, the tab closes itself, and the user is never returned to the original tab where the website was open.

This makes the user experience very confusing, even though the payment goes through and the order is confirmed. Interestingly, the original tab where the checkout started correctly loads the final thank you page, it's just that the user is never taken there and thinks something is wrong.

We already have the "Cross-Origin-Opener-Policy" option set to "same-origin-allow-popups" via Joomla HTTP Headers plugin, so that does not seem to be an issue, but I can't be sure.

Is there any way to address this?

Thank you

Last edit: 4 months 3 weeks ago by jcamus.

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 months 2 weeks ago #361833

Hello,

Did you try to fill the "return Url" in Specific Configuration part of your PayPal plugin ?
If yes, can you provide your complete Specific Configuration setting via a screenshot, please?
Regards

Last edit: 4 months 3 weeks ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 2
  • Hikaserial Subscription Hikashop Business
4 months 1 week ago #362070

Hi, I can confirm that adding a custom return URL solves the problem. If the return URL is present, PayPal refocuses back on the correct tab, but otherwise, it does not.

Last edit: 4 months 1 week ago by jcamus.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 months 1 week ago #362076

Hi,

That's strange. It should actually open in a popup, not in a new tab.
So I made a test earlier on your website and it did open as a popup, and not in a new tab.
I think you want to update your HikaShop. We made many improvements and fixes to the PayPal Checkout plugin since the 5.0.2 so it should help.

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 2
  • Hikaserial Subscription Hikashop Business
4 months 6 days ago #362104

Thanks Nicolas, I upgraded the Hikashop version but I am still seeing the same behavior with Chrome on a Mac.

However, I noticed that the popup shows up correctly if the browser isn't maximized. But if I maximize the window, it opens in a new tab. I guess this is how Chrome works.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 months 6 days ago #362105

Hi,

I'm using Chrome on windows and I don't see this. On your website, it properly opens in a popup for me and my Chrome window is maximized. It might be something specific to the Mac version ?

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 2
  • Hikaserial Subscription Hikashop Business
4 months 5 days ago #362135

Yes, it seems to be specific to Mac, I am seeing the same behavior on all websites with popups.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 months 5 days ago #362136

Hi,

Ok, I see now. Then, I don't think there is anything you can do if the browser doesn't brings you back to the proper tab after it closes the payment tab.
Now, it's strange that it would work with a return URL set. The return URL only adds an extra redirect. It doesn't do anything special to switch tabs or what not. The javacript has no control on that as far as I know. Maybe it's a delay thing which lead to this due to the extra time necessary for the second redirect to the custom thank you page ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum