Skip to content
This repository has been archived by the owner on May 27, 2019. It is now read-only.

Empty basket on successful purchase #67

Open
brendan-rice opened this issue Sep 26, 2015 · 2 comments
Open

Empty basket on successful purchase #67

brendan-rice opened this issue Sep 26, 2015 · 2 comments

Comments

@brendan-rice
Copy link

We have implemented a custom PayPal payment provider and it works as expected. One defect that we can't resolve is that the basket doesn't get emptied on a completed purchase.

I thought there should be code in HandlePaymentResponse that would take care of this but I am not sure that it would have access to cookies at this point.

Can anyone help please?

@bvojneski
Copy link

Hi Brendan,

Did you find a solution for this issue? If not, please tell me which method you are using to get the Basket object?

Regards,

@jamie21cor
Copy link

Hi bvojneski

I also had trouble with this, I managed to recycle the basket by reseting the cookie expire time. If you check your cookies on your browser for the site you should find a cookie labelled "OrderId" with the name of your stores alias appended to the end. If you set the value to an empty string and set the expiry date to DateTime.Now then this will force uWebShop to start a brand new basket. It's not elegant in any way, but after a lot of time spent going through the uWebShop code to find a function that recycles the basket, nothing popped up so this was my best and simplest option.

Thanks
Jamie

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants