Add product stock deduction and order email sending in IPN; when customer returns back to the store, check if the IPN order processing has occurred to avoid the order being processed a second time.