There's Options
Next upDonate 50 coins to the Donation Machine.
Coins in the Donation Machine0 / 50
Put a coin into the Donation Machine. Almost every Shop has one, and the total carries over between runs.
A machine can jam, and then every Donation Machine stays jammed for the rest of that run. The total stops at 999: a 1000th coin blows the machine up and resets it to 0.
Sources:AchievementsDonation Machine