OfflineUSA fuel stations require you to pay for fuel/gas – whatever you call it – before they'll turn the pump on.
The cashier will take cash or card - locals tend to use credit/debit card at the pump.
Problem is, for tourists, that most US fuel pumps tend not to accept non-USA credit cards. In this situation you can use your non-USA credit card by paying at the cash desk in advance. If you do this, get to learn "50 on 6" (or whatever) and give the cashier $50 in cash or pay by credit card.
Go back to your vehicle and the pump will allow you to dispense what you paid for.
If you don't know how much fuel the vehicle will take, tell the cashier you want to fill up and leave your card with them so they just charge what's needed when you return to collect it.
If you've over-estimated what your vehicle will actually take and, say, you can only put in $40 worth of fuel - just go back to the cashier who will give you change.
You'll get used to it in no time.
Frankly, insteady of trying to guess how much fuel the vehicle will take, I find it's much easier to just fill up every time – you'll be using the fuel anyway so filling up will minimise your service station stops.
Even better, purchase a VISA or Mastercard debit card at any big supermarket or general store, load it with money and use it to buy petrol (gas) – and everything else with while you're in USA.
Just remember, these debit cards, while convenient, have no security – you may as well be carrying cash.
If you get one and fill it up with money and lose the card – you've probably done your dough so maybe only have enough credit at any time that you really need.