$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);
}
// 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(