projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates banana.
[platal.git]
/
modules
/
payment
/
money
/
bplccyberplus.inc.php
diff --git
a/modules/payment/money/bplccyberplus.inc.php
b/modules/payment/money/bplccyberplus.inc.php
index
8c6145d
..
e82fb8f
100644
(file)
--- 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)));
}
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');
{
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_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_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
$this->infos['commande'] = Array(
'vads_amount' => $this->val,
'vads_currency' => '978', # Euro
@@
-89,7
+89,8
@@
class BPLCCyberPlus
'vads_trans_date' => $trans_date,
'vads_trans_id' => $trans_id,
'vads_order_id' => $fullref,
'vads_trans_date' => $trans_date,
'vads_trans_id' => $trans_id,
'vads_order_id' => $fullref,
- 'vads_order_info' => substr(self::replaceNonAlpha(replace_accent(Env::v('comment'))), 0, 255);
+ 'vads_order_info' => substr(self::replaceNonAlpha(replace_accent(Env::v('comment'))), 0, 255),
+ 'vads_order_info2' => Post::i('display'));
$this->infos['divers'] = Array(
'vads_version' => 'V2',
'vads_ctx_mode' => $globals->money->cyperplus_prod,
$this->infos['divers'] = Array(
'vads_version' => 'V2',
'vads_ctx_mode' => $globals->money->cyperplus_prod,