TrogloGeek / prestashop-tggatos-module

TggAtos Module for Prestashop (1.4 to 1.7), ATOS SIPS 6xx payment gateway
61 stars 34 forks source link

Eoor sign I update from 1.6.1.17 to 1.6.1.24 #111

Open Guinness8544 opened 3 years ago

Guinness8544 commented 3 years ago

Hello In my prestashop 1.6.1.24 I have ths issue Error when calling request binary, system exit code: 139, text output:

And customers can't paid by Card actuallly

Th log file :

|+> 2021-01-23 14:32:53 severity 4/home/xxxx/public_html/xxxx/modules/tggatos/tggatos.php(786): Error when calling request ATOS binary, exit code was: 11
debug object: TggAtosModuleSystemCall Object
(
    [command] => /home/vallu146/public_html/xxxx/modules/tggatos/bin/request 'language=fr' 'merchant_id=031781066100015' 'currency_code=978' 'amount=3250' 'pathfile=/home/xxxx/public_html/tggatos/param/pathfile' 'normal_return_url=https://xxxx/modules/tggatos/autodispatch/userreturn.pub.php' 'cancel_return_url=https://xxxx/modules/tggatos/autodispatch/userreturn.pub.php' 'automatic_response_url=http://xxxx/module/tggatos/silentresponse' 'customer_ip_address=xx.xx.xx.xx' 'customer_email=xxxx@googlemail.com' 'transaction_id=2' 'payment_means=CB,3,VISA,3,MASTERCARD,3' 'capture_mode=AUTHOR_CAPTURE' 'capture_day=0' 'customer_id=3' 'order_id=2314'
    [output] => Array
        (
        )

    [exit_code] => 11
    [last_line] => 
)

Best regards

Didier

TrogloGeek commented 3 years ago

Please don't open several tickets for the same issue: https://github.com/TrogloGeek/prestashop-tggatos-module/issues/109 Reopen closed issue if needed. The current one carrying more detailed info let's continue here, for clarity I'll repeat past answer here:

Hi, you either forgot to replace SIPS binaries with compatible ones from your bank, did not set rights for PHP process user to execute them, corrupted them using ASCII FTP transfer or placed them outside open_basedir allowed paths.

Given your return code 11 your SIPS binaries are most probably segfaulting, so I'm guessing you corrupted it using ASCII FTP transfer. Executable files MUST ALWAYS be transfered using BINARY FTP mode. ATOS/SIPS 6xx payment solution MUST NEVER be deployed by someone not having server administration and security skills, This solution is dangerous when handled without extreme care due to its binary files execution requirement, this is an obsolete 90's era solution with security holes and there is not so much I can do about it to strengthen it via this PrestaShop module. You're putting your payments at risks as well as your clients credit cards information. There are more modern and easy/safe to deploy solutions out there (sorry I've not worked with online payment for too many year, so I cannot suggest you one) if you don't have a system administrator to assist you.

Before trying the payment gateway, you should first make sure your binaries are compatible with your system, for example by trying to execute them through SSH remote shell.