when to save order details to database
I have ecart working OK, but would like to add the information to the database after the payment has been processed. As standard, the data is added to the database when you hit the chechout button on the checkout page, which is before the payment has been processed.
This can result with orders in the database which have not been paid for if the user does not complete the process.
Is there a way of changing the timing of the data going into the databse so that this happens after the payment process has been sucessfully completed