implemented payment
fix save method in case update