From 6b1d0e3e31d439b8afd2c059f5d9a84a7c964e44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 21 Mar 2011 14:01:11 +0100 Subject: [PATCH] Removes unused file. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/payment/money/cyberpaiement.inc.php | 94 ----------------------------- 1 file changed, 94 deletions(-) delete mode 100644 modules/payment/money/cyberpaiement.inc.php diff --git a/modules/payment/money/cyberpaiement.inc.php b/modules/payment/money/cyberpaiement.inc.php deleted file mode 100644 index 2752299..0000000 --- a/modules/payment/money/cyberpaiement.inc.php +++ /dev/null @@ -1,94 +0,0 @@ -val = strtr(sprintf("%.02f", (float)$val), '.', ','); - } - - // }}} - // {{{ function form() - - function prepareform($pay) - { - // toute la doc se trouve sur - // http://www.cyberpaiement.tm.fr/donnees.htm - - global $globals, $platal; - - $roboturl = str_replace("https://","http://", $globals->baseurl) - . '/' . $platal->ns . "payment/cyber_return/".S::v('uid')."?comment=".urlencode(Env::v('comment'))."&CHAMPBPX"; - $user = S::user(); - $name = $user->lastName(); - - // on constuit la reference de la transaction - $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' => $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::user()->bestEmail(), - 'CHAMP106' => '.', - 'CHAMP107' => '.', - 'CHAMP108' => '.', - 'CHAMP109' => '.', - 'CHAMP110' => '.'); - $this->infos['commande'] = Array( - 'CHAMP200' => $fullref, - 'CHAMP201' => $this->val, - 'CHAMP202' => "EUR"); - $this->infos['divers'] = Array('CHAMP900' => '01'); - } - - // }}} -} - -$api = 'CyberPayment'; - -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: -?> -- 2.1.4