Jump to content

Hipay module on prestashop 1.6


webinvitro

Recommended Posts

Hello webinvitro,

 

I had same problem and just fixed it!

 

Go to your modules/hipay/hipay.php @ line 530 you have $ping = ($allow_url_fopen && $openssl && $fd = fsockopen('payment.hipay.com', 443) && fclose($fd)); comment it and add / or replace it with:

 

        $fd = fsockopen('payment.hipay.com', 443);
        $ping = ($allow_url_fopen && $openssl && $fd && fclose($fd));
 
DONE! Your hipay module would start to work.
 
Just make sure you have "allow_url_fopen" on @ php.ini.
 
Best regards ;)
Link to comment
Share on other sites

  • 1 month later...

In my old version, that message will appear when this condition is true (means $categories = false)

foreach ($currencies as $currency)
{
    if (($hipaySiteId = Configuration::get('HIPAY_SITEID_'.$currency['iso_code']) AND !count($this->getHipayCategories(true, $hipaySiteId)))
    OR ($hipaySiteIdTest = Configuration::get('HIPAY_SITEID_TEST_'.$currency['iso_code']) AND !count($this->getHipayCategories(false, $hipaySiteIdTest))))
        $categoryRetrieval = false;
    if ((Configuration::get('HIPAY_SITEID_'.$currency['iso_code']) AND !Configuration::get('HIPAY_CATEGORY_'.$currency['iso_code']))
    OR (Configuration::get('HIPAY_SITEID_TEST_'.$currency['iso_code']) AND !Configuration::get('HIPAY_CATEGORY_TEST_'.$currency['iso_code'])))
        $categories = false;
}

Maybe you will find something relevant in your settings.

Link to comment
Share on other sites

 

Hi cesar.b.araujo,

 

Are you sure you have the allow_url_fopen set as ON ?

Your code is like this :

EkBI2lW.png

nop

didn't work again

as soon as I uploaded it to the server, all page goes down

I've replaced it again

 

 

Sorry cesar.b.araujo,

 

It was missing a ";" at line $fd = fsockopen('payment.hipay.com', 433);

 

Try that ;)

Link to comment
Share on other sites

×
×
  • Create New...