add new payment functionality to payments controller