Service stations in the Netherlands

Last year we were in Wassenaar near The Hague and had trouble refueling, or paying, because all gas stations were equipped with card machines. Finally we found one where you could pay in the shop, however, the diesel was then more expensive. Question: which cards are accepted or can you buy somewhere a prepaid card, which you fill up here accordingly? Who knows?