Charges in the US

If when in the US you go to pay by card and they offer if you want to pay in sterling or dollars, if you choose sterling, is the foreign. transaction charge applied as part of the charge ? Or do they add it on afterwards ?