X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fpayment%2Fmoney%2Fbplccyberplus.inc.php;h=e82fb8f3b4181abe97a22d4fc64cd96ab4ecca0d;hb=69f43a7b7ea47cb56ffdc66da4ae526f83462f79;hp=f0b40e48aa8af9e74ab1f426eb8325b7a7af8797;hpb=e999a40a812f8a2f350d69c5e1611669ff8937d1;p=platal.git diff --git a/modules/payment/money/bplccyberplus.inc.php b/modules/payment/money/bplccyberplus.inc.php index f0b40e4..e82fb8f 100644 --- a/modules/payment/money/bplccyberplus.inc.php +++ b/modules/payment/money/bplccyberplus.inc.php @@ -60,7 +60,7 @@ class BPLCCyberPlus return trim(preg_replace('/\s\s+/', ' ', preg_replace('/[^a-zA-Z0-9]/', ' ', $string))); } - function prepareform($pay) + function prepareform($pay, $user) { global $globals, $platal; $log = S::v('log'); @@ -79,9 +79,9 @@ class BPLCCyberPlus 'vads_return_mode' => 'NONE', 'vads_url_return' => $pay->url ? $pay->url : $globals->baseurl . '/' . $platal->ns); $this->infos['client'] = Array( - 'vads_cust_email' => S::user()->bestEmail(), + 'vads_cust_email' => $user->bestEmail(), 'vads_cust_id' => S::v('uid'), - 'vads_cust_name' => substr(self::replaceNonAlpha(replace_accent(S::user()->shortName())), 0, 127)); + 'vads_cust_name' => substr(self::replaceNonAlpha(replace_accent($user->shortName())), 0, 127)); $this->infos['commande'] = Array( 'vads_amount' => $this->val, 'vads_currency' => '978', # Euro