-- url of the page with the problem -- : http://http://www.qwerty.webion.pl/Joomla323/
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Chrome 33.0.1750.154
Hi,
I would like to ask is there a chance to call onPaymentNotification() with params in $_POST. My payment gateway sends CSV params by POST. This is my code:
function onPaymentNotification(&$statuses)
{
if (!empty($_POST)) {
if(empty($_POST['json']) || !$this->check_ip()){
exit;
}
$data = json_decode(stripcslashes($_POST['json']), true);
$ret = array();
foreach($data as $entry)
{
if(isset($entry['account']))
{
$ret[] = array(
'account' => $entry['account'],
'transfer' => $entry['transfer'],
'return' => 1
);
//`account` `control` `transfer` `time` `amount` `guarantee` `title` `status`
if($entry['status'] != '2'){
$this->modifyOrder($order_id, $this->payment_params->verified_status, true, true);
return true;
}
else{
$this->modifyOrder($order_id, $this->payment_params->invalid_status, true, true);
return false;
}
}
echo json_encode($ret);
}
}
exit;
}