c# - How to manage shopping basket with 10 minute expiration for each Order detail? -
i have website sponsoring , selling licence. sponsoring area , quantity defined (and price non-exclusive). of these areas none-exclusive , has price. some,exclusive ones, dose not have price , need administrator acceptance.
all these order-details, reservation system, has time limit. if doesn't accepted admin or if doesn't pay, removed after 10 minutes. (i don't have idea admin acceptance , time limit?!)
whats more have other products. these products license. don't have time limit , need paid.
now how can implement these basket. how add , remove order details items?
in pending orders table, have date time order created/last updated. if @ time processing attempt occurs, check time difference between , when record made/updates. if more 10 minutes, cancel order
you either on c# or database. easiest in c# using:
(datetime.utcnow - orderupdateddate).totalminutes < 10
Comments
Post a Comment