extrac before action in payments controller