[TYPO3-commerce] About Random User

Luc Muller l.mul-nospam-ler at ameos.com
Fri Jun 22 12:35:51 CEST 2007


Hi list I got a small problem.

I'm using an external banking system.
This one is calling a script from my server wich is finishing the order
But, if the bank do not validate my order, the user account is already 
created
and if the user do not come back while is session is available he cant reuse 
the same mail. so this is a problem.

In pi3 in method handleAddress()

we can see that we can have a randomly geranted username

if($this->conf['randomUser']){
      $feuData['username'] = substr($this->MYSESSION['billing']['name'], 0, 
2) .substr($this->MYSESSION['billing']['surname'], 0, 4) 
.substr(uniqid(rand()), 0, 4);
     }else{
      $feuData['username'] = $this->MYSESSION['billing']['email'];
     }

Does anyone can explain me how this work ? How do I do to specify a randomly 
generated username
For example I would like to have a random username if the user choose a 
specific payement type. eg Credit Card.
if he chosse another payement type, the username should have to be generated 
normally with the email.

Can somebody explain me those points ? 




More information about the TYPO3-project-commerce mailing list