X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fpayment%2Fmoney%2Fcyberpaiement.inc.php;h=c79935c3c5f5161a3f9d408e3ea463a59ad27f59;hb=b8971a3ed64f3ba69becf1cd8f3b32ee2292026d;hp=325411445af231ebbf2464ef0e29bbe5e7716350;hpb=7bc4d7502a7f4924b380407796e875b61fd8e000;p=platal.git diff --git a/modules/payment/money/cyberpaiement.inc.php b/modules/payment/money/cyberpaiement.inc.php index 3254114..c79935c 100644 --- a/modules/payment/money/cyberpaiement.inc.php +++ b/modules/payment/money/cyberpaiement.inc.php @@ -1,6 +1,6 @@ val = strtr(sprintf("%.02f", (float)$val), '.', ','); @@ -42,8 +42,8 @@ class CyberPayment function prepareform(&$pay) { - // toute la doc se trouve sur - // http://www.cyberpaiement.tm.fr/donnees.htm + // toute la doc se trouve sur + // http://www.cyberpaiement.tm.fr/donnees.htm global $globals, $platal; @@ -52,40 +52,39 @@ class CyberPayment $req = XDB::query("SELECT IF(nom_usage!='', nom_usage, nom) AS nom FROM auth_user_md5 WHERE user_id = {?}",S::v('uid')); - $name = $req->fetchOneCell(); + $name = $req->fetchOneCell(); // on constuit la reference de la transaction - require_once 'xorg.misc.inc.php'; $prefix = ($pay->flags->hasflag('unique')) ? str_pad("",15,"0") : rand_url_id(); $fullref = substr("$prefix-xorg-{$pay->id}",-15); $this->urlform = "https://ecom.cimetz.com/telepaie/cgishell.exe/epaie01.exe"; - $this->infos['commercant'] = Array( - 'CHAMP000' => 510879, - 'CHAMP001' => 5965, - 'CHAMP002' => 5429159012, - 'CHAMP003' => "I", - 'CHAMP004' => "Polytechnique.org", - 'CHAMP005' => $roboturl, - 'CHAMP006' => "Polytechnique.org", - 'CHAMP007' => $globals->baseurl . '/' . $platal->ns, - 'CHAMP008' => $pay->mail); - $this->infos['client'] = Array( - 'CHAMP100' => $name, - 'CHAMP101' => S::v('prenom'), - 'CHAMP102' => '.', - 'CHAMP103' => '.', - 'CHAMP104' => S::v('bestalias').'@polytechnique.org', - 'CHAMP106' => '.', - 'CHAMP107' => '.', - 'CHAMP108' => '.', - 'CHAMP109' => '.', - 'CHAMP110' => '.'); - $this->infos['commande'] = Array( - 'CHAMP200' => $fullref, - 'CHAMP201' => $this->val, - 'CHAMP202' => "EUR"); - $this->infos['divers'] = Array('CHAMP900' => '01'); + $this->infos['commercant'] = Array( + 'CHAMP000' => 510879, + 'CHAMP001' => 5965, + 'CHAMP002' => 5429159012, + 'CHAMP003' => "I", + 'CHAMP004' => "Polytechnique.org", + 'CHAMP005' => $roboturl, + 'CHAMP006' => "Polytechnique.org", + 'CHAMP007' => $pay->url ? $pay->url : $globals->baseurl . '/' . $platal->ns, + 'CHAMP008' => $pay->mail); + $this->infos['client'] = Array( + 'CHAMP100' => replace_accent($name), + 'CHAMP101' => replace_accent(S::v('prenom')), + 'CHAMP102' => '.', + 'CHAMP103' => '.', + 'CHAMP104' => S::v('bestalias').'@' . $globals->mail->domain, + 'CHAMP106' => '.', + 'CHAMP107' => '.', + 'CHAMP108' => '.', + 'CHAMP109' => '.', + 'CHAMP110' => '.'); + $this->infos['commande'] = Array( + 'CHAMP200' => $fullref, + 'CHAMP201' => $this->val, + 'CHAMP202' => "EUR"); + $this->infos['divers'] = Array('CHAMP900' => '01'); } // }}}