Just doing a small ecommerce project at the moment that has very specific requirements, so I've decided to DIY it; payment gateway is PayPal.
Having mixed thoughts about how to manage product quantities though. When someone buys something I want the quantities to be reduced etc.
What's the best way of doing this?
I personally thought save the data to DB, wait for PayPal IPN and upon successful response reduce quantities...but what happens if during this window someone else completes checkout, reducing quantities to zero...the original customer would still be able to checkout..even though quantities were ZERO...
Ideas welcome!
Having mixed thoughts about how to manage product quantities though. When someone buys something I want the quantities to be reduced etc.
What's the best way of doing this?
I personally thought save the data to DB, wait for PayPal IPN and upon successful response reduce quantities...but what happens if during this window someone else completes checkout, reducing quantities to zero...the original customer would still be able to checkout..even though quantities were ZERO...
Ideas welcome!





