Arcade games don't work that way. Vending machines do. Not arcade games. If you put a quarter in and get a credit, that's it, you've made your donation to the Game God whether you use it or not.
Arcade game coin returns are mechanical. If your quarter gets stuck and doesn't register a credit, you push the coin return button which mechanically, causes the mechanism inside to release the coin into the return chute.