refactor tasks controller to payments