Fixed some bugs and redirections in payments controller.