Created payment logic

* Created payment logic
* Updated tests (not passing)