In the Netherlands it's a mix of both these days.
During the daytime you pump, and then walk inside to pay afterwards. At night, when the building itself is closed, you pay using the terminal and only then are you allowed to start fueling up
There is also unmanned stations without a shop. They are pre-paid all day by default.