[Marked off-topic because this has nothing at all to do with Tomcat]

> From: Asare Samuel [mailto:[EMAIL PROTECTED] 
> I am trying to create using a small sales tool like that of 
> amazon(ie shopping cart, checkout).

There are many of these around already.  You will pay less to buy a
license to an existing tool than you will in time to create your own -
don't reinvent the wheel.

>   1)Just wondered if there is already a interface for this already. 

Many.  Search for "java shopping cart" on Google.

>   2)Also how do i go about creating the actual money 
> transactions? Do I use paypall.

Again, there are many options, depending on transaction volume, size,
security, what methods of payment you want your users to be able to
use... most of the commercial carts integrate with several different
payment providers, or search for "payment provider" on Google.  I've
used WorldPay most recently; this is not an endorsement, merely a note.

>   3)How do you prevent double purchasing-eg one product in 
> stock-user1 is the first to put it in cart but continues to 
> shop. User2 comes along and puts same product in cart but 
> goes to checkout quicker.
>    
>   I know you could edit the stock level as soon as a product 
> is added to a cart. But really technically the product is not 
> sold until confirmation in checkout. And the user may not even buy. 

Sorry, you're trying to have your cake and eat it here.  EITHER you're
optimistic and let both users put the product in their cart (but allow
double-purchasing) OR you're pessimistic and only let one user put the
product in their cart (and accept that in low-stock situations you won't
get some sales).  There's no way of doing both - about the best you can
do is keep separate "stock level" and "quantity in carts" levels.  But
this is irrelevant, because you really, really don't want the pain of
maintaining your own solution; you want to buy someone else's solution.
Honest.  It'll save money, time and pain in the long run.

                - Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to