Remove occurences of flag 'unique' for payments.
authorAnne Limoges <anne.limoges_git@polytechnique.org>
Wed, 1 Aug 2012 09:11:48 +0000 (11:11 +0200)
committerAnne Limoges <anne.limoges_git@polytechnique.org>
Wed, 1 Aug 2012 09:11:48 +0000 (11:11 +0200)
modules/payment/money/bplccyberplus.inc.php
modules/payment/money/paypal.inc.php

index 344712f..46bf7f0 100644 (file)
@@ -66,7 +66,7 @@ class BPLCCyberPlus
         $log = S::v('log');
 
         // Transaction's reference computation.
-        $prefix = ($pay->flags->hasflag('unique')) ? str_pad("",15,"0") : rand_url_id();
+        $prefix = rand_url_id();
         $fullref = substr("$prefix-{$pay->id}",-12); // FIXME : check for duplicates
         $ts = time();
         $trans_date = gmdate("YmdHis", $ts);
index a6d9ab4..f5232d1 100644 (file)
@@ -91,7 +91,7 @@ class PayPal
         }
 
         // We build the transaction's reference
-        $prefix = ($pay->flags->hasflag('unique')) ? str_pad("", 15, "0") : rand_url_id();
+        $prefix = rand_url_id();
         $fullref = substr("$prefix-xorg-{$pay->id}", -15);
 
         $this->infos['commande'] = array(