Generalized payments_controller.