Sha256: b69fe9cdc0d903bfa4b49ab29475521a3b2127f8ff541cce8581e698be9aafeb
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
# -*- encoding : utf-8 -*- class RobokassaController < ApplicationController before_filter :create_notification def paid if @notification.valid_result_signature? Rubykassa.result_callback.call(self, @notification) else Rubykassa.fail_callback.call(self, @notification) end end def success if @notification.valid_success_signature? Rubykassa.success_callback.call(self, @notification) else Rubykassa.fail_callback.call(self, @notification) end end def fail Rubykassa.fail_callback.call(self, @notification) end private def create_notification @notification = Rubykassa::Notification.new request.query_parameters end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubykassa-0.3.2 | app/controllers/robokassa_controller.rb |