protected function createVendor(
        $email,
        $walletId,
        $walletSpaceId,
        $identified,
        $miraklId,
        $vatNumber,
        $callbackSalt,
        $miraklData
    ) {
        $this->logger->debug(
            "The wallet number is $walletId",
            array('miraklId' => $miraklId, "action" => "Wallet creation")
        );
        $vendor = $this->vendorManager->create(
            $email,
            $miraklId,
            $walletId,
            $walletSpaceId,
            $identified,
            $vatNumber,
            $callbackSalt,
            $miraklData
        );

        $vendor->setEmail($email);
        $vendor->setHiPayId($walletId);
        $vendor->setMiraklId($miraklId);
        $vendor->setHiPayUserSpaceId($walletSpaceId);
        $vendor->setHiPayIdentified($identified);
        $vendor->setVatNumber($vatNumber);
        $vendor->setCallbackSalt($callbackSalt);
        $vendor->setEnabled(true);
        $vendor->setCountry($miraklData["contact_informations"]["country"]);
        $vendor->setPaymentBlocked($miraklData["payment_details"]["payment_blocked"]);

        $this->logger->info('[OK] Wallet recorded', array('miraklId' => $miraklId, "action" => "Wallet creation"));

        return $vendor;
    }
protected function createVendor(
        $email,
        $walletId,
        $walletSpaceId,
        $identified,
        $miraklId,
        $vatNumber,
        $callbackSalt,
        $miraklData
    ) {
        $this->logger->debug(
            "The wallet number is $walletId",
            array('miraklId' => $miraklId, "action" => "Wallet creation")
        );
        $vendor = $this->vendorManager->create(
            $email,
            $miraklId,
            $walletId,
            $walletSpaceId,
            $identified,
            $vatNumber,
            $callbackSalt,
            $miraklData
        );

        $vendor->setEmail($email);
        $vendor->setHiPayId($walletId);
        $vendor->setMiraklId($miraklId);
        $vendor->setHiPayUserSpaceId($walletSpaceId);
        $vendor->setHiPayIdentified($identified);
        $vendor->setVatNumber($vatNumber);
        $vendor->setCallbackSalt($callbackSalt);
        $vendor->setEnabled(true);
        $vendor->setCountry($miraklData["contact_informations"]["country"]);
        $vendor->setPaymentBlocked($miraklData["payment_details"]["payment_blocked"]);

        $this->logger->info('[OK] Wallet recorded', array('miraklId' => $miraklId, "action" => "Wallet creation"));

        return $vendor;
    }
protected function createVendor ( $ email , $ walletId , $ walletSpaceId , $ identified , $ miraklId , $ vatNumber , $ callbackSalt , $ miraklData ) { $ this -> logger -> debug ( "The wallet number is $walletId" , array ( 'miraklId' => $ miraklId , "action" => "Wallet creation" ) ) ; $ vendor = $ this -> vendorManager -> create ( $ email , $ miraklId , $ walletId , $ walletSpaceId , $ identified , $ vatNumber , $ callbackSalt , $ miraklData ) ; $ vendor -> setEmail ( $ email ) ; $ vendor -> setHiPayId ( $ walletId ) ; $ vendor -> setMiraklId ( $ miraklId ) ; $ vendor -> setHiPayUserSpaceId ( $ walletSpaceId ) ; $ vendor -> setHiPayIdentified ( $ identified ) ; $ vendor -> setVatNumber ( $ vatNumber ) ; $ vendor -> setCallbackSalt ( $ callbackSalt ) ; $ vendor -> setEnabled ( true ) ; $ vendor -> setCountry ( $ miraklData [ "contact_informations" ] [ "country" ] ) ; $ vendor -> setPaymentBlocked ( $ miraklData [ "payment_details" ] [ "payment_blocked" ] ) ; $ this -> logger -> info ( '[OK] Wallet recorded' , array ( 'miraklId' => $ miraklId , "action" => "Wallet creation" ) ) ; return $ vendor ; }
To record a wallet in the database in the case there was an error.

@param string $email
@param int $walletId
@param int $walletSpaceId
@param boolean $identified
@param int $miraklId
@param array $miraklData
@return VendorInterface
To record a wallet in the database in the case there was an error .