Class: RobokassaController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/robokassa_controller.rb

Instance Method Summary collapse

Instance Method Details

#failObject



21
22
23
# File 'app/controllers/robokassa_controller.rb', line 21

def fail
  render text: "fail"
end


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

#successObject



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