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

#   Clicking Back From PayPal Results in "Select a billing address" Error

##

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

Less More

- Posts: 31
- Thank you received: 1
-
-

7 years 5 months ago -  7 years 5 months ago [\#307405](#307405) by [nyanginator](/forum/user/50337-nyanginator "View nyanginator's Profile")  *[Clicking Back From PayPal Results in "Select a billing address" Error](/forum/27-checkout/897627-clicking-back-from-paypal-results-in-select-a-billing-address-error#307405 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2.19 -- Browser(s) name and version -- : Firefox 67.0.1  After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message &quot;Select a billing address&quot; now shows. In the previous version 4.0.3, this didn't happen.  You can also get the &quot;Select a billing address&quot; error by clicking back on the browser on the &quot;Please wait while you are redirected to PayPal&quot; page, and then clicking forward on browser.")* was created by *[nyanginator](/forum/user/50337-nyanginator "View nyanginator's Profile")*

-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.6
-- PHP version -- : 7.2.19
-- Browser(s) name and version -- : Firefox 67.0.1

After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message "Select a billing address" now shows. In the previous version 4.0.3, this didn't happen.

You can also get the "Select a billing address" error by clicking back on the browser on the "Please wait while you are redirected to PayPal" page, and then clicking forward on browser.

Last edit: 7 years 5 months ago by [nyanginator](/forum/user/50337-nyanginator "View nyanginator's Profile"). Reason: Another error case scenario

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzYyNy1jbGlja2luZy1iYWNrLWZyb20tcGF5cGFsLXJlc3VsdHMtaW4tc2VsZWN0LWEtYmlsbGluZy1hZGRyZXNzLWVycm9yP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

7 years 5 months ago [\#307406](#307406) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Clicking Back From PayPal Results in "Select a billing address" Error](/forum/27-checkout/897627-clicking-back-from-paypal-results-in-select-a-billing-address-error#307406 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2.19 -- Browser(s) name and version -- : Firefox 67.0.1  After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message &quot;Select a billing address&quot; now shows. In the previous version 4.0.3, this didn't happen.  You can also get the &quot;Select a billing address&quot; error by clicking back on the browser on the &quot;Please wait while you are redirected to PayPal&quot; page, and then clicking forward on browser.")*

Hi,

Could you provide a link to the shop and instructions to reproduce the problem (if needed) ?
Could you also tell us how the "clean cart when order is" setting is configured on your HikaShop configuration ?

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

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

Less More

- Posts: 31
- Thank you received: 1
-
-

7 years 5 months ago -  7 years 5 months ago [\#307623](#307623) by [nyanginator](/forum/user/50337-nyanginator "View nyanginator's Profile")  Replied by *[nyanginator](/forum/user/50337-nyanginator "View nyanginator's Profile")* on topic *[Clicking Back From PayPal Results in "Select a billing address" Error](/forum/27-checkout/897627-clicking-back-from-paypal-results-in-select-a-billing-address-error#307623 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2.19 -- Browser(s) name and version -- : Firefox 67.0.1  After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message &quot;Select a billing address&quot; now shows. In the previous version 4.0.3, this didn't happen.  You can also get the &quot;Select a billing address&quot; error by clicking back on the browser on the &quot;Please wait while you are redirected to PayPal&quot; page, and then clicking forward on browser.")*

Hi, sorry for the delayed response. Don't know how I wasn't subscribed to the thread.

1. I setup a new Joomla install and the latest HikaShop with all default settings, except adding in an email for PayPal
2. I created a product and gave it a price.
3. Add to cart and checkout. I logged in as admin user to checkout.
4. Initially, there is no problem. The "Select a billing address" error does not show in the 2 scenarios I noted: 1) clicking back from the paypal.com page, and 2) clicking back then forward from the "redirecting to PayPal" page.
5. Go into HikaShop configuration and click Save. Don't need to change any settings.
6. Try checking out again and again clicking back from paypal.com, and clicking back-forward from the redirect page. The error now shows.

"Clean cart when order is" is set on Created (default).

Temporary test site:
This message contains confidential information

- [ ![selectbillingerror.jpg](/forum/attachment/47018) ](/forum/attachment/47018 "...llingerror.jpg") [ ](/forum/attachment/47018?download=1 "...llingerror.jpg")

Last edit: 7 years 5 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzYyNy1jbGlja2luZy1iYWNrLWZyb20tcGF5cGFsLXJlc3VsdHMtaW4tc2VsZWN0LWEtYmlsbGluZy1hZGRyZXNzLWVycm9yP3RtcGw9bWFya2Rvd24=) 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
-
-

7 years 5 months ago [\#307640](#307640) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Clicking Back From PayPal Results in "Select a billing address" Error](/forum/27-checkout/897627-clicking-back-from-paypal-results-in-select-a-billing-address-error#307640 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2.19 -- Browser(s) name and version -- : Firefox 67.0.1  After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message &quot;Select a billing address&quot; now shows. In the previous version 4.0.3, this didn't happen.  You can also get the &quot;Select a billing address&quot; error by clicking back on the browser on the &quot;Please wait while you are redirected to PayPal&quot; page, and then clicking forward on browser.")*

Hello,

I process several test (with several browser) on your test website and I only get this result... Basically something is missing, if we aren't able to reproduce the issue we won't be able to solve it.

[ ![&#91;img](https://i.imgur.com/uKY1F6w.png) ](https://i.imgur.com/uKY1F6w.png "&#91;img")

Awaiting more details from you to progress on your subject
Regards

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

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

Less More

- Posts: 31
- Thank you received: 1
-
-

7 years 4 months ago [\#307770](#307770) by [nyanginator](/forum/user/50337-nyanginator "View nyanginator's Profile")  Replied by *[nyanginator](/forum/user/50337-nyanginator "View nyanginator's Profile")* on topic *[Clicking Back From PayPal Results in "Select a billing address" Error](/forum/27-checkout/897627-clicking-back-from-paypal-results-in-select-a-billing-address-error#307770 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2.19 -- Browser(s) name and version -- : Firefox 67.0.1  After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message &quot;Select a billing address&quot; now shows. In the previous version 4.0.3, this didn't happen.  You can also get the &quot;Select a billing address&quot; error by clicking back on the browser on the &quot;Please wait while you are redirected to PayPal&quot; page, and then clicking forward on browser.")*

Hi, sorry again for the delay. Somehow I got unsubscribed one more time.

After trying in Chrome and Edge, I realized only one of the problems occurs on those browsers. That is:

1. While the browser is pausing for 10 seconds to redirect to PayPal, click Back on browser instead of letting it redirect.
2. Remember to click Forward on the browser aftwards for the error to appear.

For Firefox, the problem occurs in the case described above as well as for clicking Back after getting to the PayPal.com site.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzYyNy1jbGlja2luZy1iYWNrLWZyb20tcGF5cGFsLXJlc3VsdHMtaW4tc2VsZWN0LWEtYmlsbGluZy1hZGRyZXNzLWVycm9yP3RtcGw9bWFya2Rvd24=) 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
-
-

7 years 4 months ago -  7 years 4 months ago [\#307788](#307788) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Clicking Back From PayPal Results in "Select a billing address" Error](/forum/27-checkout/897627-clicking-back-from-paypal-results-in-select-a-billing-address-error#307788 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2.19 -- Browser(s) name and version -- : Firefox 67.0.1  After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message &quot;Select a billing address&quot; now shows. In the previous version 4.0.3, this didn't happen.  You can also get the &quot;Select a billing address&quot; error by clicking back on the browser on the &quot;Please wait while you are redirected to PayPal&quot; page, and then clicking forward on browser.")*

Hello,

Thanks for your details, we work on our side in order to correct your issue and with the same move improve HikaShop.
I will guide you to process some test with a short fix, here the step by step process :
1. Go in *YourWebsite*\components\com_hikashop\controllers
2. Open the **checkout.php** file
3. Around line **705**, you have this : Code:

if($checkoutHelper-&gt;isStoreClosed()) { hikaInput::get()-&gt;set('layout', 'shop_closed'); return $this-&gt;display(); } $check = $this-&gt;checkWorkflowSteps($step); if($check !== true) $this-&gt;app-&gt;redirect($checkoutHelper-&gt;completeLink('cid='.((int)$check + 1), false, true, false, $checkout_itemid)); $old_messages = $this-&gt;app-&gt;getMessageQueue();

4. Add this : Code:

// // Get and check the cart // $cart = $checkoutHelper-&gt;getCart(); if(empty($cart) &#124;&#124; empty($cart-&gt;cart_id) &#124;&#124; empty($cart-&gt;products)) { if(!empty($cart-&gt;messages)) { // Display messages foreach($cart-&gt;messages as $msg) { $this-&gt;app-&gt;enqueueMessage($msg['msg'], $msg['type']); } } $this-&gt;setRedirect($checkoutHelper-&gt;getRedirectUrl(), JText::_('CART_EMPTY')); return true; }

5. To have this :
[ ![700 ](https://i.imgur.com/tplBrmR.png) ](https://i.imgur.com/tplBrmR.png "700 ")

Important point, we are awaiting your returns to be sure that this fix is efficient before add it to our next HikaShop releases

Regards

Last edit: 7 years 4 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 31
- Thank you received: 1
-
-

7 years 4 months ago [\#307874](#307874) by [nyanginator](/forum/user/50337-nyanginator "View nyanginator's Profile")  Replied by *[nyanginator](/forum/user/50337-nyanginator "View nyanginator's Profile")* on topic *[Clicking Back From PayPal Results in "Select a billing address" Error](/forum/27-checkout/897627-clicking-back-from-paypal-results-in-select-a-billing-address-error#307874 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6 -- PHP version -- : 7.2.19 -- Browser(s) name and version -- : Firefox 67.0.1  After arriving at the paypal.com page, if I click back on the browser instead of proceeding with the payment, the error message &quot;Select a billing address&quot; now shows. In the previous version 4.0.3, this didn't happen.  You can also get the &quot;Select a billing address&quot; error by clicking back on the browser on the &quot;Please wait while you are redirected to PayPal&quot; page, and then clicking forward on browser.")*

Yes! It seems to be working. Thanks for responding so quickly.

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzYyNy1jbGlja2luZy1iYWNrLWZyb20tcGF5cGFsLXJlc3VsdHMtaW4tc2VsZWN0LWEtYmlsbGluZy1hZGRyZXNzLWVycm9yP3RtcGw9bWFya2Rvd24=) 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.081 seconds

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