Hi,
Thanks. That's a great help !
Knowing these errors, I see what's going on and why it only happens in some cases.
Change the line:
if(in_array($order->order_status,$confirmed_statuses) && !in_array($order->old->order_status,$confirmed_statuses)){
$this->AuthorizedWithCaptured($order);
return;
}
to:
if(in_array($order->order_status,$confirmed_statuses) && !in_array($order->old->order_status,$confirmed_statuses)){
if(!isset($full_order)){
$orderClass = hikashop_get('class.order');
$full_order = $orderClass->loadFullOrder($order->order_id,false ,false);
}
$this->AuthorizedWithCaptured($full_order);
return;
}
in the file plugins/hikashop/taxcloud/taxcloud.php and that will fix the problem. We'll add the patch on our end.
PS:
HikaShop displays the error returned directly on the page. However, it's possible that the error is not seen, specially if the order is confirmed automatically by the payment gateway (in which case there is a debug setting in the payment method to log the errors to the payment log file).