Jump to content

HiPay Module not creating order after completion


Recommended Posts

After choosing payment method and completing order. The module redirects to Hipay, however it doesn't create any order in prestashop backoffice. It makes harder too see if any costumers actually bought anything.

Any Fix for this? Ty

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

A fix is located here. I've just corrected my installation of PS 1.3.6.0. and I'll see if it works later. I've included the fix below.


File “/modules/hipay/hipay.php”
Line #172-#174 shows:

if (HIPAY_MAPI_COMM_XML::analyzeNotificationXML($_POST[’xml’], $operation, $status, $date, $time, $transid, $amount, $currency, $id_cart, $data) === false)
file_put_contents(’logs’.Configuration::get(’HIPAY_UNIQID’).’.txt’, ‘[’.date(’Y-m-d H:i:s’).’] Analysis error: ‘.$_POST[’xml’]."\n", FILE_APPEND);
return false;



but the return false is always executed .. (as it’s no part of the IF statement). SImply adding {} around the IF statement fixes this bug

so it should be:

if (HIPAY_MAPI_COMM_XML::analyzeNotificationXML($_POST[’xml’], $operation, $status, $date, $time, $transid, $amount, $currency, $id_cart, $data) === false){
file_put_contents(’logs’.Configuration::get(’HIPAY_UNIQID’).’.txt’, ‘[’.date(’Y-m-d H:i:s’).’] Analysis error: ‘.$_POST[’xml’]."\n", FILE_APPEND);
return false;
} 


hope this helps

By Buzzeke on 02 Feb 2011 at 14:23 (UTC+1)


Apart from the above mentioned problem I have found HiPay very good, very easy to set up AND there is no monthly charge like the other payment services/modules.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...