I am having an issue with the cartthrob_on_authorize developer hook. I use the hook to carry out some additional processing to the customer order. One such process is to set an order status based on what was ordered. In order to do this, I use the following code:
$new_status = array('status => "Processing");
This is where it gets a little bit confusing. We use Sagepay Server as our offsite payment processor. The code above works perfectly if the customer successfully checks out first time. However, if their first attempt fails (ie they cancel the initial transaction or enter the wrong card details) and then successfully complete the transaction shortly afterwards, the order status defaults to
Has anybody experienced this issue before?