Subtract an order from products[stock] when customer clicks buy-now button

I want to subtract from my database products[stock] (in the background)
when a customer clicks on the paypal buy now button on this page
http://p4.lucillekenneyjewelry.com/pendants/build and let them continue
on with the purchase