public function createFullUseraccountV2(UserAccount $userAccount)
    {
        $this->resetRestClient();

        if (!$userAccount->getLocale()) {
            $userAccount->setLocale($this->locale);
        }

        if (!$userAccount->getTimeZone()) {
            $userAccount->setTimeZone($this->timezone);
        }

        if (!$userAccount->getEntityCode()) {
            $userAccount->setEntityCode($this->entity);
        }

        if (!$userAccount->getCredential()) {
            $userAccount->setCredential(
                array(
                    'wslogin' => $this->login,
                    'wspassword' => $this->password,
                )
            );
        }

        $parameters = $userAccount->mergeIntoParameters();

        $command = $this->restClient->getCommand(
            'RegisterNewAccount',
            $parameters['userAccount']
        );

        $result = $this->executeRest($command, $parameters);

        return new AccountInfo(
            $result['account_id'],
            $result['user_space_id'],
            $result['status'] === Identified::YES,
            $result['callback_salt']
        );
    }
public function createFullUseraccountV2(UserAccount $userAccount)
    {
        $this->resetRestClient();

        if (!$userAccount->getLocale()) {
            $userAccount->setLocale($this->locale);
        }

        if (!$userAccount->getTimeZone()) {
            $userAccount->setTimeZone($this->timezone);
        }

        if (!$userAccount->getEntityCode()) {
            $userAccount->setEntityCode($this->entity);
        }

        if (!$userAccount->getCredential()) {
            $userAccount->setCredential(
                array(
                    'wslogin' => $this->login,
                    'wspassword' => $this->password,
                )
            );
        }

        $parameters = $userAccount->mergeIntoParameters();

        $command = $this->restClient->getCommand(
            'RegisterNewAccount',
            $parameters['userAccount']
        );

        $result = $this->executeRest($command, $parameters);

        return new AccountInfo(
            $result['account_id'],
            $result['user_space_id'],
            $result['status'] === Identified::YES,
            $result['callback_salt']
        );
    }
public function createFullUseraccountV2 ( UserAccount $ userAccount ) { $ this -> resetRestClient ( ) ; if ( ! $ userAccount -> getLocale ( ) ) { $ userAccount -> setLocale ( $ this -> locale ) ; } if ( ! $ userAccount -> getTimeZone ( ) ) { $ userAccount -> setTimeZone ( $ this -> timezone ) ; } if ( ! $ userAccount -> getEntityCode ( ) ) { $ userAccount -> setEntityCode ( $ this -> entity ) ; } if ( ! $ userAccount -> getCredential ( ) ) { $ userAccount -> setCredential ( array ( 'wslogin' => $ this -> login , 'wspassword' => $ this -> password , ) ) ; } $ parameters = $ userAccount -> mergeIntoParameters ( ) ; $ command = $ this -> restClient -> getCommand ( 'RegisterNewAccount' , $ parameters [ 'userAccount' ] ) ; $ result = $ this -> executeRest ( $ command , $ parameters ) ; return new AccountInfo ( $ result [ 'account_id' ] , $ result [ 'user_space_id' ] , $ result [ 'status' ] === Identified :: YES , $ result [ 'callback_salt' ] ) ; }
Create an new account on HiPay wallet
Enforce the entity to the one given on object construction
Enforce the locale to the one given on object construction if false
Enforce the timezone to the one given on object construction if false.

@param UserAccountBasic $accountBasic
@param UserAccountDetails $accountDetails
@param MerchantDataRest $merchantData

@return AccountInfo The HiPay Wallet account information

@throws Exception
Create an new account on HiPay wallet Enforce the entity to the one given on object construction Enforce the locale to the one given on object construction if false Enforce the timezone to the one given on object construction if false .