protected function getWalletUserInfo(array $shopData, VendorInterface $vendor = null)
    {
        $userAccount = new UserAccount($shopData);

        $event = new CreateWallet(
            $userAccount
        );

        $walletInfo = $this->hipay->getWalletInfo($event->getUserAccount(), $vendor);

        return $walletInfo;
    }
protected function getWalletUserInfo(array $shopData, VendorInterface $vendor = null)
    {
        $userAccount = new UserAccount($shopData);

        $event = new CreateWallet(
            $userAccount
        );

        $walletInfo = $this->hipay->getWalletInfo($event->getUserAccount(), $vendor);

        return $walletInfo;
    }
protected function getWalletUserInfo ( array $ shopData , VendorInterface $ vendor = null ) { $ userAccount = new UserAccount ( $ shopData ) ; $ event = new CreateWallet ( $ userAccount ) ; $ walletInfo = $ this -> hipay -> getWalletInfo ( $ event -> getUserAccount ( ) , $ vendor ) ; return $ walletInfo ; }
Get a HiPay wallet.

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

@param array $shopData

@return AccountInfo the get account info
Get a HiPay wallet .