A newspaper vending machine was a device in use on Earth during the 20th century. This machine distributed newspapers. A person would drop change into the machine, open the machine, and, then, get the newspaper.
In 1986, after seeing this process in operation, James T. Kirk came to the realization that people in that year were still using money and that he had to find a way to get it for his crew. (Star Trek IV: The Voyage Home)