Best practice for canceling an MVC Order

Coreysan 1,786 Reputation points
2025-01-13T00:06:40.7166667+00:00

I have a store that will not require logging in. A customer can order as a guest, and fill in their shipping details, etc.

(Payment is Paypal. ) If a customer cancels Paypal and disconnects, I would remove their data, but exactly how would I know they canceled? What's a good way to know?

One idea I have is to fetch some kind of token from Paypal if they paid. If they didnt pay, then I could remove their data. But what if they are still connected, and they are just being undecided for a half hour?

I ask because I was using session data, where I only persisted if they paid. But MVC is good at persisting data, and now I don't know whats best.

To persist or not to persist...that is the question!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,035 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,731 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.