protected function vendorEnabled($vendor)
    {
        if ($vendor === null) {
            return false;
        }

        if ($vendor->getEnabled() === null) {
            return $this->mirakl->vendorIsEnabled($vendor->getMiraklId());
        } else {
            return (bool)$vendor->getEnabled();
        }
    }
protected function vendorEnabled($vendor)
    {
        if ($vendor === null) {
            return false;
        }

        if ($vendor->getEnabled() === null) {
            return $this->mirakl->vendorIsEnabled($vendor->getMiraklId());
        } else {
            return (bool)$vendor->getEnabled();
        }
    }
protected function vendorEnabled ( $ vendor ) { if ( $ vendor === null ) { return false ; } if ( $ vendor -> getEnabled ( ) === null ) { return $ this -> mirakl -> vendorIsEnabled ( $ vendor -> getMiraklId ( ) ) ; } else { return ( bool ) $ vendor -> getEnabled ( ) ; } }
Check if vendor account is enable for HiPay

@param $vendor
@return bool
Check if vendor account is enable for HiPay