Invalidate old payments. Close #2687

Hey guys, tried to fix the issue. 

I am waiting for feedback, as I am sure I might've screwed up something, I'm not very experienced with rails. 

I added some comments to the commits. Waiting for reply on them.