One complication of this is that sales taxes can apply down to the city level, meaning the amount the vendor collects after tax can be somewhat variable. This would make a lot of sense if we had a federal sales tax that was just distributed to states based on the purchase location.