Path: /var/www/tablelouisphilippe.com

 

[***]

Fichier cx2kk/cgi/paiement.php :
$orderid = $_SESSION['clientNic'];
$montant = $_SESSION['totalToPayTTC']*100;

if($_SESSION['lang']==1) $transLang = "fr";
if($_SESSION['lang']==2) $transLang = "en";
if($transLang=="fr") {$text_1="Veuillez choisir une carte ci-dessous :";}
if($transLang=="en") {$text_1="Please select a credit card below:";}

$parm="merchant_id=[??]";
$parm="$parm pathfile=/var/www/tablelouisphilippe.com//cx2kk/cgi/pathfile";
$parm="$parm normal_return_url=http://www./ok.php?lang2=".$_SESSION['lang'];
$parm="$parm cancel_return_url=http://www./catalog.php?lang2=".$_SESSION['lang'];
$parm="$parm automatic_response_url=http://www./cx2kk/cgi/retourauto.php";
$parm="$parm payment_means=CB,2,VISA,2,MASTERCARD,2";
$parm="$parm language=".$transLang;
$parm="$parm merchant_country=fr";
$parm="$parm amount=$montant";
$parm="$parm currency_code=978";
$parm="$parm order_id=$orderid";
$parm="$parm header_flag=no";
$parm="$parm block_align=center";

$path_bin = "/var/www/tablelouisphilippe.com//cx2kk/cgi/request";

Fichier cx2kk/cgi/pathfile :
# Exemple pour le répertoire www.merchant.com/[***]/payment/logo/
# D_LOGO!/[***]/payment/logo/!
D_LOGO!//cx2kk/logo/!
F_DEFAULT!/var/www/tablelouisphilippe.com//cx2kk/param/parmcom.[***]!
F_PARAM!/var/www/tablelouisphilippe.com//cx2kk/param/parmcom!
F_CERTIFICATE!/var/www/tablelouisphilippe.com//cx2kk/param/certif!

Fichier cx2kk/cgi/retourauto.php (ligne 12/13) :
if($v==6) {
$path_bin = "/var/www/tablelouisphilippe.com//cx2kk/cgi/response";
$pathfile="pathfile=/var/www/tablelouisphilippe.com//cx2kk/cgi/pathfile";
$result = exec("$path_bin $pathfile $message");
}
else {
$path_bin = "/var/www/tablelouisphilippe.com//cx2kk/cgi/response";
$result = exec("$path_bin $message");
}

Fichier cx2kk/param/parmcom.[??] :
#AUTO_RESPONSE_URL!http://www./cx2kk/cgi/retourauto.php!
#CANCEL_URL!http://www./catalog.php!
#RETURN_URL!http://www./index.php!

CHMOD 777 -> cgi/request.exe
CHMOD 777 -> cgi/response.exe
CHMOD 777 -> cgi/log.txt