Example #1
0
 /**
  * Creates self::$John (test natural user) if not created yet
  * @return \MangoPay\UserNatural
  */
 protected function getJohn()
 {
     if (self::$John === null) {
         $user = $this->buildJohn();
         self::$John = $this->_api->Users->Create($user);
     }
     return self::$John;
 }
Example #2
0
 /**
  * Creates self::$John (test natural user) if not created yet
  * @return \MangoPay\UserNatural
  */
 protected function getJohn()
 {
     if (self::$John === null) {
         $user = new \MangoPay\UserNatural();
         $user->FirstName = "John";
         $user->LastName = "Doe";
         $user->Email = "*****@*****.**";
         $user->Address = $this->getNewAddress();
         $user->Birthday = mktime(0, 0, 0, 12, 21, 1975);
         $user->Nationality = "FR";
         $user->CountryOfResidence = "FR";
         $user->Occupation = "programmer";
         $user->IncomeRange = 3;
         self::$John = $this->_api->Users->Create($user);
     }
     return self::$John;
 }