REGLEMENT DE VOTRE FACTURE PAR CARTE VISA PAR ELIPA

Revenir sur la page boutique

[insert_php]

$numfac = htmlspecialchars(trim($_POST[‘numfact’]));

if(isset($_POST[‘montant1’]) && $_POST[‘montant’]==”0″){
$montant =htmlspecialchars(trim($_POST[‘montant1’]));
}else{
$montant =htmlspecialchars(trim($_POST[‘montant’]));
}
$email =htmlspecialchars(trim($_POST[’email’]));

$tel =htmlspecialchars(trim($_POST[‘tel’]));
$_mad=”http://cafe.tg/elipaback.php”;
$fields = array(“live”=> “1”, // Valeur 0 pour demo et 1 pour le LIVE
“oid”=> $numfac, // Identifiant de la commande
“inv”=> $numfac, // Identifiant de la facture
“ttl”=> ($montant/556.548), //Net à payer
“tel”=> $tel, // Numero de telephone du client
“eml”=> $email, // Email du client
“vid”=> “cafetg”, // Identifiant attribué par iPay
“curr”=> “USD”,
“p1″=> $numfac,
“p2″=> $montant,
“p3″=> $tel,
“p4″=> $email,
//”lbk”=>$_SERVER[‘HTTP_REFERER’],
“lbk”=>””,
//”cbk”=>$_SERVER[‘HTTP_REFERER’].”?clientmail=”.$email,

“cbk”=>$_mad.”?clientmail=”.$email,
“cst”=> “1”,
“crl”=> “0”
);
$datastring = $fields[‘live’].$fields[‘oid’].$fields[‘inv’].$fields[‘ttl’].$fields[‘tel’].$fields[’eml’].$fields[‘vid’].$fields[‘curr’].$fields[‘p1’].$fields[‘p2’].$fields[‘p3’].$fields[‘p4’].$fields[‘cbk’].$fields[‘cst’].$fields[‘crl’];
$hashkey =”Cfhv2525GT54mnCA”;
$generated_hash = hash_hmac(‘sha1’,$datastring , $hashkey);
[/insert_php]

[insert_php]
foreach ($fields as $key => $value) {
echo ‘‘;
}
[/insert_php]


Information:

Numéro de facture : [insert_php] echo $numfac; [/insert_php]

Montant : [insert_php] echo $montant; [/insert_php] Fcfa

Email : [insert_php] echo $email; [/insert_php]

Téléphone : [insert_php] echo $tel; [/insert_php]

BOUTIQUE CAFE INFORMATIQUE