public function recordVendor($email, $miraklId)
    {
        $miraklData = current($this->mirakl->getVendors(null, false, array($miraklId)));
        $hipayInfo = $this->hipay->getWalletInfo($miraklData['contact_informations']['email']);
        $hipayInfo->setVatNumber($miraklData['pro_details']['VAT_number']);
        $vendor = $this->createVendor(
            $email,
            $hipayInfo->getUserAccountld(),
            $hipayInfo->getUserSpaceld(),
            $hipayInfo->getIdentified(),
            $miraklId,
            $miraklData
        );
        $this->vendorManager->save($vendor);
    }
public function recordVendor($email, $miraklId)
    {
        $miraklData = current($this->mirakl->getVendors(null, false, array($miraklId)));
        $hipayInfo = $this->hipay->getWalletInfo($miraklData['contact_informations']['email']);
        $hipayInfo->setVatNumber($miraklData['pro_details']['VAT_number']);
        $vendor = $this->createVendor(
            $email,
            $hipayInfo->getUserAccountld(),
            $hipayInfo->getUserSpaceld(),
            $hipayInfo->getIdentified(),
            $miraklId,
            $miraklData
        );
        $this->vendorManager->save($vendor);
    }
public function recordVendor ( $ email , $ miraklId ) { $ miraklData = current ( $ this -> mirakl -> getVendors ( null , false , array ( $ miraklId ) ) ) ; $ hipayInfo = $ this -> hipay -> getWalletInfo ( $ miraklData [ 'contact_informations' ] [ 'email' ] ) ; $ hipayInfo -> setVatNumber ( $ miraklData [ 'pro_details' ] [ 'VAT_number' ] ) ; $ vendor = $ this -> createVendor ( $ email , $ hipayInfo -> getUserAccountld ( ) , $ hipayInfo -> getUserSpaceld ( ) , $ hipayInfo -> getIdentified ( ) , $ miraklId , $ miraklData ) ; $ this -> vendorManager -> save ( $ vendor ) ; }
Save a vendor in case there was an error.

@param string $email
@param int $miraklId
Save a vendor in case there was an error .