Paying with cash used to be a way to get a discount. These days it can often cost an extra $1 to $6—the sort of transaction fees once limited to swiping a credit card or using an out-of-network ATM.