Fixed bug in payments_controller. Gateway working perfectly.