Fixes public payments.
authorStéphane Jacob <sj@m4x.org>
Tue, 24 Apr 2012 16:44:47 +0000 (18:44 +0200)
committerStéphane Jacob <sj@m4x.org>
Tue, 24 Apr 2012 16:44:47 +0000 (18:44 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/payment/money/bplccyberplus.inc.php
modules/payment/money/paypal.inc.php

index e82fb8f..6f3c4e1 100644 (file)
@@ -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,
index 3ea2c63..a6d9ab4 100644 (file)
@@ -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(