protected function createWallet(array $shopData)
    {
        $userAccount = new UserAccount($shopData);

        $event = new CreateWallet(
            $userAccount
        );

        $this->dispatcher->dispatch(
            'before.wallet.create',
            $event
        );

        $walletInfo = $this->hipay->createFullUseraccountV2(
            $event->getUserAccount()
        );

        $this->dispatcher->dispatch(
            'after.wallet.create',
            $event
        );

        return $walletInfo;
    }
protected function createWallet(array $shopData)
    {
        $userAccount = new UserAccount($shopData);

        $event = new CreateWallet(
            $userAccount
        );

        $this->dispatcher->dispatch(
            'before.wallet.create',
            $event
        );

        $walletInfo = $this->hipay->createFullUseraccountV2(
            $event->getUserAccount()
        );

        $this->dispatcher->dispatch(
            'after.wallet.create',
            $event
        );

        return $walletInfo;
    }
protected function createWallet ( array $ shopData ) { $ userAccount = new UserAccount ( $ shopData ) ; $ event = new CreateWallet ( $ userAccount ) ; $ this -> dispatcher -> dispatch ( 'before.wallet.create' , $ event ) ; $ walletInfo = $ this -> hipay -> createFullUseraccountV2 ( $ event -> getUserAccount ( ) ) ; $ this -> dispatcher -> dispatch ( 'after.wallet.create' , $ event ) ; return $ walletInfo ; }
Create a HiPay wallet.

Dispatch the event <b>before.wallet.create</b>
before sending the data to HiPay

@param array $shopData

@return AccountInfo the created account info
Create a HiPay wallet .