I have seen more than one of these "vending machines" in Dubai.
Interesting thing is that they constantly adjust the price of the gold bars as the price of gold fluctuates. I guess these machines need a permanent internet connection to receive the current gold price.
Who will be the first to do a MITM and adjust the price to 0.001? ;)