Hello nicolas.
I must know a thing before i can continue programming with Hikashop, I am trying to get onPaymentNotification() to run when i call cURL like this:
$ch = curl_init('
www.4u2.co.il/index.php
');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS ,$params);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0); // DO NOT RETURN HTTP HEADERS
curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0;Windows NT 5.1)");
$result=curl_exec($ch);
note that $params are the paramters "notif_payment=banktransfer&option=com_hikashop&ctrl=checkout&task=notify&tmpl=component&lang=he" and some more parameter from the creditcard company.
Can the function work this way? I have tried few things and i can seem to run the function with this script..
Thanks in advance.