From 1c02b178e88ecb8734929003ee28677f63af31f5 Mon Sep 17 00:00:00 2001 From: Anne Limoges Date: Wed, 1 Aug 2012 11:11:48 +0200 Subject: [PATCH] Remove occurences of flag 'unique' for payments. --- modules/payment/money/bplccyberplus.inc.php | 2 +- modules/payment/money/paypal.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/payment/money/bplccyberplus.inc.php b/modules/payment/money/bplccyberplus.inc.php index 344712f..46bf7f0 100644 --- a/modules/payment/money/bplccyberplus.inc.php +++ b/modules/payment/money/bplccyberplus.inc.php @@ -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); diff --git a/modules/payment/money/paypal.inc.php b/modules/payment/money/paypal.inc.php index a6d9ab4..f5232d1 100644 --- a/modules/payment/money/paypal.inc.php +++ b/modules/payment/money/paypal.inc.php @@ -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( -- 2.1.4