Gasoline is sold by the liter and can be purchased with Costa Rican Colones, American Dollars, or credit cards.  Nearly all the gas stations are full-service.  It is a good idea to make sure the pump is zero'd prior to filling.