Class: Robokassa::Controller
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Robokassa::Controller
- Defined in:
- lib/robokassa/controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#fail ⇒ Object
15 16 17 18 |
# File 'lib/robokassa/controller.rb', line 15 def fail retval = Robokassa.interface_class.fail(params, self) redirect_to retval if retval.is_a? String end |
#notify ⇒ Object
4 5 6 7 8 |
# File 'lib/robokassa/controller.rb', line 4 def notify interface = Robokassa.interface_class.create_by_notification_key params[:notification_key] params.delete :notification_key render :text => interface.notify(params, self) end |
#success ⇒ Object
10 11 12 13 |
# File 'lib/robokassa/controller.rb', line 10 def success retval = Robokassa.interface_class.success(params, self) redirect_to retval if retval.is_a? String end |