:'( I have been working on my cart for some time now, but to make it a success, I need the community help.
I am using a payment gateway CCAvenues, through a contribution. There is no problem in the contribution and it works fine.
The problem I am facing is, that, the orders do not get logged in my cart even when I redirect the customers from CCAvenue back to checkout_process.php. I also realize that if my customers miss clicking the link back to my site's checkout_process.php, then too the order will not be logged though I would have received the payment. This I feel is silly.
I want to have the orders entered irrespective of whether the payment is made or not and the cart is emptied. How can this be done?
If this is possible, then I can just reconcile the orders with payment and fulfill them, making the process very simple for my customers and myself.
I checked the code and see that the orders are entered into the database, only when checkout_process.php is run and not before. Under "cash on delivery" option the orders are logged in the database using the same file. What variable or function does checkout_process.php check to make the entry of the order into the database and empty the cart?
Any help on this this will be most appreciated.