How did the horse get a soda?

He gave the vending machine a buck.