-- HikaShop version -- : 4.0.0
-- Joomla version -- : 3.8.13
-- PHP version -- : 7.1
-- Browser(s) name and version -- : Chrome latest
I am using Hikashop dotPay free payment plugin, downloaded from
www.dotpay.pl/moduly-i-wtyczki/
(DotPay is one of the biggest payment gateways in Poland).
It's not updated for 3 years, but still works
The case is that after successful payment it doesn't update the status of the Order to Confirmed. It only displays the Success Message with Order Link in Hikashop.
The final URL after successful payment is for example:
/index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=26&order_token=tsZkCtHc&Itemid=248&status=OK
The onPaymentNotification function looks like this:
public function onPaymentNotification(&$statuses)
{
$vars = $this->createVarsFromRequest();
$orderId = (int)@$vars['control'];
$orderDb = $this->loadOrderRelatedData($orderId);
if(!$this->isRequestValidated($vars, $orderDb)){
return $this->processRequest($orderId, $this->payment_params->invalid_status);
}
if(!$this->isSignatureMatch($vars)){
return $this->processRequest($orderId, $this->payment_params->pending_status);
}
if($this->isStatusCompleted($vars)){
return $this->processRequest($orderId, $this->payment_params->verified_status);
}else{
$this->statusMessage = $vars['operation_status'];
return $this->processRequest($orderId, $this->payment_params->pending_status);
}
}
Can you give me a hint, what should I change to update the order according to the "status" GET value?