Coin Acceptor help. CH-268t

use 0V ----[10K]---- digital pin Arduino ----[20K] ---- 12 Volt

Then the arduino pin will get about 4 Volt (will be seen as a HIGH) , current will only be a about 0.4 mA

You could use one of the interrupt pins to measure the timing - see attachinterrupt() - if you want to