I dunno... without some type of "push" tech (be it AJAX or Flash or whatever), you've got no way of updating "everyone's" view of the item (I'm thinking on how to prevent a "race condition" type deal, where it still "looks" available to others, although someone else has already locked it).
Guess that's not really as important as preventing it from getting pulled while someone is trying to pay for it tho. :) Eh. Maybe a little modal window that say "item will be locked for 15 minutes while you pay"? And then any items that are locked have the "pay" button disabled, and perhaps show "pending payment" for the actual user who's paying? Hrm... :Den -- There is nothing permanent except change. Heraclitus On Tue, Mar 23, 2010 at 1:59 PM, Matthew Smith wrote: > > I am adding paypal to an ecommerce site. Because of the unique nature of > the items we are selling, I need to lock the items in the db and then send > the user to paypal. > > So, here are the steps: > > 1. Log in (email/password) > > 2. Select payment via paypal or "classic"(cc on site). For this example, > paypal. > > 3. Display message to user that items will be locked for 15 minutes with > button to pay now/checkout. > > 4. Send to paypal. > > I've got one and two, but I'm a little fuzzy on step three. There are a > couple of ways I can do this so I would like input on which would be best. > > After the button is clicked, I could lock the item and cfhttp the first > paypal page, submitting the required cart info form variables, keeping > everything in one step > > Or, I could lock th items and have the output be the form submitting the > cart contents to the paypal checkout page. > > Which would be better? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:313804 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm
