<?php
/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
+ * Copyright (C) 2003-2007 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
// }}}
// {{{ constructor
-
+
function CyberPayment($val)
{
$this->val = strtr(sprintf("%.02f", (float)$val), '.', ',');
$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);
'CHAMP101' => S::v('prenom'),
'CHAMP102' => '.',
'CHAMP103' => '.',
- 'CHAMP104' => S::v('bestalias').'@polytechnique.org',
+ 'CHAMP104' => S::v('bestalias').'@' . $globals->mail->domain,
'CHAMP106' => '.',
'CHAMP107' => '.',
'CHAMP108' => '.',
$api = 'CyberPayment';
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>