module Robokassa::Controller
Public Instance Methods
fail()
click to toggle source
# File lib/robokassa/controller.rb, line 21 def fail retval = Robokassa.interface.fail(params, self) redirect_to retval if retval.is_a? String end
notify()
click to toggle source
included do
if protect_against_forgery? skip_before_action :verify_authenticity_token, only: [:notify] end
end
# File lib/robokassa/controller.rb, line 9 def notify if params[:token] != Robokassa.interface.token raise Robokassa::InvalidToken.new end render plain: Robokassa.interface.notify(params, self) end
success()
click to toggle source
# File lib/robokassa/controller.rb, line 16 def success retval = Robokassa.interface.success(params, self) redirect_to retval if retval.is_a? String end