* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
function BPLCCyberPlus($val)
{
// Improvement: number of digits after the coma might depend from the currency.
function BPLCCyberPlus($val)
{
// Improvement: number of digits after the coma might depend from the currency.
- $this->val = 100 * strtr(sprintf("%.02f", (float)$val), '.', ',');
+ $this->val = 100 * strtr($val, ',', '.');
- $trans_date = date("YmdHis", $ts);
- $trans_id = date("His", $ts); // FIXME : check for duplicates
+ $trans_date = gmdate("YmdHis", $ts);
+ $trans_id = gmdate("His", $ts); // FIXME : check for duplicates
'vads_url_return' => $pay->url ? $pay->url : $globals->baseurl . '/' . $platal->ns);
$this->infos['client'] = Array(
'vads_cust_email' => $user->bestEmail(),
'vads_url_return' => $pay->url ? $pay->url : $globals->baseurl . '/' . $platal->ns);
$this->infos['client'] = Array(
'vads_cust_email' => $user->bestEmail(),
'vads_cust_name' => substr(self::replaceNonAlpha(replace_accent($user->shortName())), 0, 127));
$this->infos['commande'] = Array(
'vads_amount' => $this->val,
'vads_cust_name' => substr(self::replaceNonAlpha(replace_accent($user->shortName())), 0, 127));
$this->infos['commande'] = Array(
'vads_amount' => $this->val,