If I'm understanding the problem correctly, the vendor sells water in exactly 8 oz increments, but only has glasses that can hold 6 oz or 10 oz.
Fill up the 10 oz glass, then (carefully) pour its contents into a 6 oz glass until it it is full. Then the 10 oz glass should contain 4 oz of water. Drink the 4 oz, repeat this process to get your 8 oz, and pay the man.