From: Stéphane Jacob Date: Tue, 24 Apr 2012 16:44:47 +0000 (+0200) Subject: Fixes public payments. X-Git-Tag: xorg/1.1.5~10 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=688bec5ec7fed42850695c19cebb14b3bb6dfd7c;p=platal.git Fixes public payments. Signed-off-by: Stéphane Jacob --- diff --git a/modules/payment/money/bplccyberplus.inc.php b/modules/payment/money/bplccyberplus.inc.php index e82fb8f..6f3c4e1 100644 --- a/modules/payment/money/bplccyberplus.inc.php +++ b/modules/payment/money/bplccyberplus.inc.php @@ -80,7 +80,7 @@ class BPLCCyberPlus 'vads_url_return' => $pay->url ? $pay->url : $globals->baseurl . '/' . $platal->ns); $this->infos['client'] = Array( 'vads_cust_email' => $user->bestEmail(), - 'vads_cust_id' => S::v('uid'), + 'vads_cust_id' => $user->id(), 'vads_cust_name' => substr(self::replaceNonAlpha(replace_accent($user->shortName())), 0, 127)); $this->infos['commande'] = Array( 'vads_amount' => $this->val, diff --git a/modules/payment/money/paypal.inc.php b/modules/payment/money/paypal.inc.php index 3ea2c63..a6d9ab4 100644 --- a/modules/payment/money/paypal.inc.php +++ b/modules/payment/money/paypal.inc.php @@ -45,7 +45,7 @@ class PayPal $this->urlform = 'https://' . $globals->money->paypal_site . '/cgi-bin/webscr'; $roboturl = str_replace("https://","http://",$globals->baseurl) - . '/' . $platal->ns . "payment/paypal_return/" . S::v('uid') + . '/' . $platal->ns . "payment/paypal_return/" . $user->id() . "?comment=" . urlencode(Env::v('comment')) . '&display=' . Post::i('display'); $this->infos = array(