You can buy RER tickets from ticket windows and ticket vending machines (Billetterie Ile-de-France) at any Paris Metro station, at large train stations (such as Gare de Lyon, Gare du Nord), at RER train stations and Transilien train stations (suburban trains to destinations like Versailles & Fontainebleau).