Class: RobokassaController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- RobokassaController
- Defined in:
- app/controllers/robokassa_controller.rb
Instance Method Summary collapse
Instance Method Details
#fail ⇒ Object
21 22 23 |
# File 'app/controllers/robokassa_controller.rb', line 21 def fail render text: "fail" end |
#paid ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/controllers/robokassa_controller.rb', line 5 def paid if @notification.valid_result_signature? render text: @notification.success else render text: "fail" end end |
#success ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/controllers/robokassa_controller.rb', line 13 def success if @notification.valid_success_signature? render text: "success" else render text: "fail" end end |