Sometimes the cart still has the products after confirmed payment.

  • Posts: 170
  • Thank you received: 8
  • Hikashop Essential
7 years 10 months ago #259010

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.28
-- Browser(s) name and version -- : Chrome (auto Update on)

Happy New Year to all the hikashop Team :-)

Some customers after paying via Worldpay are redirected back to the cart where the items are still in the cart. this happens randomly, other times it's okay. The cart is set to clear on confirmed, the order status is getting confirmed, but the user says that they come back to all the products after they have paid. Is this a server timing issue with Worldpay taking too long to send back the confirmed handshake?
In other words the user gets back from Worldpay payments screen before the Confirmation reaches and updates the Hikashop system?

Many Thanks

Ian

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 10 months ago #259019

Hi,

Thanks. Happy new year to you too !

It's something like that.
It's why we set the "clear cart when order is" setting to "created" by default so that you don't sometimes end up with the cart still filled after you come back from the payment gateway.

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

  • Posts: 170
  • Thank you received: 8
  • Hikashop Essential
7 years 10 months ago #259109

Thanks Nicolas,
Would this be a timing issue more with my server being slow to process the response or with the WorldPay server being slow?
Would it be worth sending the user to a page which makes them wait a few seconds after they return to the website, i.e your order is now being processed page, here is your order number etc to by a little time for the process to work?

Many Thanks
Ian

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 10 months ago #259129

Hi,

Not necessarily.
After the user has paid on the payment gateway and comes back to your website, it first goes to the page yourwebsite.com/index.php?option=com_hik...ckout&task=after_end
There, the controller of HikaShop clears the cart from the session and then redirect to the return_url that you specified in the return url setting of the payment gateway if any or displays the default after_end view of HikaShop with the generic thank you message.

So it could also be a caching issue whereby the controller wouldn't be called, and the server would directly display the cached version of the page or skip the controller and directly redirect to the return url.

The following user(s) said Thank You: ianspeed

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

Time to create page: 0.058 seconds
Powered by Kunena Forum