Module: Robokassa::Controller
- Extended by:
- ActiveSupport::Concern
- Included in:
- RobokassaController
- Defined in:
- lib/robokassa/controller.rb
Instance Method Summary collapse
Instance Method Details
#fail ⇒ Object
19 20 21 22 |
# File 'lib/robokassa/controller.rb', line 19 def fail retval = Robokassa.interface.fail(params, self) redirect_to retval if retval.is_a? String end |
#notify ⇒ Object
7 8 9 10 11 12 |
# File 'lib/robokassa/controller.rb', line 7 def notify if params[:token] != Robokassa.interface.token raise Robokassa::InvalidToken.new end render :text => Robokassa.interface.notify(params, self) end |
#success ⇒ Object
14 15 16 17 |
# File 'lib/robokassa/controller.rb', line 14 def success retval = Robokassa.interface.success(params, self) redirect_to retval if retval.is_a? String end |