How does paypal clear the cart in the shop?

  • Posts: 197
  • Thank you received: 5
  • Hikashop Business
10 years 11 months ago #134354

-- url of the page with the problem -- : dadshotsauce.com
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 3.2
-- PHP version -- : 5.3

We have been running some tests before launching our new shop.
in one of the tests a user did the following:

Purchased one product
Checked out with Paypal
Paid with Paypal
Closed the browser

Shortly after the user went back to the site and he found the product still in the cart.
I asked them to repeat this and other purchases they made because they didn't sound too sure about the exact procedure implemented but at the same time it occurred to me that I am not so sure how Paypal and Hikashop handle the clearing of the cart after purchase/payment with paypal.

So while I wait for the tests to be performed again and see the results, I wanted to ask here if anyone could explain to me how Hikashop and Paypal handle the clearing of the cart after payment and if there are any situations where after purchasing and paying for something it is possible to find that product still in the cart.

Is it necessary for the user to click on "return to website" button in the paypal confirmation page?
If the browser window is closed at that point, does that impede paypal from communicating with hikashop that the product has been purchased?

Thank you.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 11 months ago #134365

Hi,

By default the cart is cleared when the user comes back from PayPal and that the payment is valid. If the user doesn't go back to your website with the link provided by PayPal at the end, the cart won't be cleared. You potentially have the choice to automatically redirect the user after the payment in PayPal in the settings of your PayPal account if I remember correctly.
You also have the possibility to change the "clear cart when order is" option of the configuration of HikaShop to "created" so that the cart is cleared directly before being redirected to PayPal for the payment. That way, you're sure that the cart is cleared.

The following user(s) said Thank You: conticreative

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

  • Posts: 197
  • Thank you received: 5
  • Hikashop Business
10 years 11 months ago #134583

Thank you so much.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum