[Skip to main content](#vessel-content)

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

##

- **[jcamus](/forum/user/33993-jcamus "View jcamus's Profile")**
- [![jcamus's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33993-jcamus "View jcamus's Profile") Topic Author
- [ Offline](/forum/user/33993-jcamus)

Less More

- Posts: 36
- Thank you received: 2
-
-

2 years 4 months ago -  2 years 4 months ago [\#361830](#361830) by [jcamus](/forum/user/33993-jcamus "View jcamus's Profile")  *[PayPal Checkout opening new tab and not returning the user to the website](/forum/25-install-update/908341-paypal-checkout-opening-new-tab-and-not-returning-the-user-to-the-website#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 &quot;PayPal&quot; 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 &quot;PayPal&quot;, 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 &quot;Cross-Origin-Opener-Policy&quot; option set to &quot;same-origin-allow-popups&quot; 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")* was created by *[jcamus](/forum/user/33993-jcamus "View jcamus's Profile")*

-- url of the page with the problem -- : [ www.winescholarguild.com](https://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: 2 years 4 months ago by [jcamus](/forum/user/33993-jcamus "View jcamus's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwODM0MS1wYXlwYWwtY2hlY2tvdXQtb3BlbmluZy1uZXctdGFiLWFuZC1ub3QtcmV0dXJuaW5nLXRoZS11c2VyLXRvLXRoZS13ZWJzaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

2 years 4 months ago -  2 years 4 months ago [\#361833](#361833) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[PayPal Checkout opening new tab and not returning the user to the website](/forum/25-install-update/908341-paypal-checkout-opening-new-tab-and-not-returning-the-user-to-the-website#361833 "-- 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 &quot;PayPal&quot; 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 &quot;PayPal&quot;, 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 &quot;Cross-Origin-Opener-Policy&quot; option set to &quot;same-origin-allow-popups&quot; 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")*

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: 2 years 4 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwODM0MS1wYXlwYWwtY2hlY2tvdXQtb3BlbmluZy1uZXctdGFiLWFuZC1ub3QtcmV0dXJuaW5nLXRoZS11c2VyLXRvLXRoZS13ZWJzaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jcamus](/forum/user/33993-jcamus "View jcamus's Profile")**
- [![jcamus's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33993-jcamus "View jcamus's Profile") Topic Author
- [ Offline](/forum/user/33993-jcamus)

Less More

- Posts: 36
- Thank you received: 2
-
-

2 years 3 months ago -  2 years 3 months ago [\#362070](#362070) by [jcamus](/forum/user/33993-jcamus "View jcamus's Profile")  Replied by *[jcamus](/forum/user/33993-jcamus "View jcamus's Profile")* on topic *[PayPal Checkout opening new tab and not returning the user to the website](/forum/25-install-update/908341-paypal-checkout-opening-new-tab-and-not-returning-the-user-to-the-website#362070 "-- 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 &quot;PayPal&quot; 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 &quot;PayPal&quot;, 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 &quot;Cross-Origin-Opener-Policy&quot; option set to &quot;same-origin-allow-popups&quot; 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")*

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: 2 years 3 months ago by [jcamus](/forum/user/33993-jcamus "View jcamus's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwODM0MS1wYXlwYWwtY2hlY2tvdXQtb3BlbmluZy1uZXctdGFiLWFuZC1ub3QtcmV0dXJuaW5nLXRoZS11c2VyLXRvLXRoZS13ZWJzaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

2 years 3 months ago [\#362076](#362076) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout opening new tab and not returning the user to the website](/forum/25-install-update/908341-paypal-checkout-opening-new-tab-and-not-returning-the-user-to-the-website#362076 "-- 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 &quot;PayPal&quot; 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 &quot;PayPal&quot;, 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 &quot;Cross-Origin-Opener-Policy&quot; option set to &quot;same-origin-allow-popups&quot; 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwODM0MS1wYXlwYWwtY2hlY2tvdXQtb3BlbmluZy1uZXctdGFiLWFuZC1ub3QtcmV0dXJuaW5nLXRoZS11c2VyLXRvLXRoZS13ZWJzaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jcamus](/forum/user/33993-jcamus "View jcamus's Profile")**
- [![jcamus's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33993-jcamus "View jcamus's Profile") Topic Author
- [ Offline](/forum/user/33993-jcamus)

Less More

- Posts: 36
- Thank you received: 2
-
-

2 years 3 months ago [\#362104](#362104) by [jcamus](/forum/user/33993-jcamus "View jcamus's Profile")  Replied by *[jcamus](/forum/user/33993-jcamus "View jcamus's Profile")* on topic *[PayPal Checkout opening new tab and not returning the user to the website](/forum/25-install-update/908341-paypal-checkout-opening-new-tab-and-not-returning-the-user-to-the-website#362104 "-- 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 &quot;PayPal&quot; 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 &quot;PayPal&quot;, 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 &quot;Cross-Origin-Opener-Policy&quot; option set to &quot;same-origin-allow-popups&quot; 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwODM0MS1wYXlwYWwtY2hlY2tvdXQtb3BlbmluZy1uZXctdGFiLWFuZC1ub3QtcmV0dXJuaW5nLXRoZS11c2VyLXRvLXRoZS13ZWJzaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

2 years 3 months ago [\#362105](#362105) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout opening new tab and not returning the user to the website](/forum/25-install-update/908341-paypal-checkout-opening-new-tab-and-not-returning-the-user-to-the-website#362105 "-- 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 &quot;PayPal&quot; 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 &quot;PayPal&quot;, 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 &quot;Cross-Origin-Opener-Policy&quot; option set to &quot;same-origin-allow-popups&quot; 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwODM0MS1wYXlwYWwtY2hlY2tvdXQtb3BlbmluZy1uZXctdGFiLWFuZC1ub3QtcmV0dXJuaW5nLXRoZS11c2VyLXRvLXRoZS13ZWJzaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jcamus](/forum/user/33993-jcamus "View jcamus's Profile")**
- [![jcamus's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33993-jcamus "View jcamus's Profile") Topic Author
- [ Offline](/forum/user/33993-jcamus)

Less More

- Posts: 36
- Thank you received: 2
-
-

2 years 3 months ago [\#362135](#362135) by [jcamus](/forum/user/33993-jcamus "View jcamus's Profile")  Replied by *[jcamus](/forum/user/33993-jcamus "View jcamus's Profile")* on topic *[PayPal Checkout opening new tab and not returning the user to the website](/forum/25-install-update/908341-paypal-checkout-opening-new-tab-and-not-returning-the-user-to-the-website#362135 "-- 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 &quot;PayPal&quot; 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 &quot;PayPal&quot;, 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 &quot;Cross-Origin-Opener-Policy&quot; option set to &quot;same-origin-allow-popups&quot; 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")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwODM0MS1wYXlwYWwtY2hlY2tvdXQtb3BlbmluZy1uZXctdGFiLWFuZC1ub3QtcmV0dXJuaW5nLXRoZS11c2VyLXRvLXRoZS13ZWJzaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

2 years 3 months ago [\#362136](#362136) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout opening new tab and not returning the user to the website](/forum/25-install-update/908341-paypal-checkout-opening-new-tab-and-not-returning-the-user-to-the-website#362136 "-- 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 &quot;PayPal&quot; 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 &quot;PayPal&quot;, 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 &quot;Cross-Origin-Opener-Policy&quot; option set to &quot;same-origin-allow-popups&quot; 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwODM0MS1wYXlwYWwtY2hlY2tvdXQtb3BlbmluZy1uZXctdGFiLWFuZC1ub3QtcmV0dXJuaW5nLXRoZS11c2VyLXRvLXRoZS13ZWJzaXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.064 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
