Sha256: 258bfc354c76562c60dd12351217f2cffdfa4b96c1e03da49214fc68191f7199
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
# -*- encoding : utf-8 -*- class RobokassaController < ApplicationController before_filter :create_notification, except: :fail def paid if @notification.valid_result_signature? render text: @notification.success else render text: "fail" end end def success if @notification.valid_success_signature? render text: "success" else render text: "fail" end end def fail render text: "fail" end private def create_notification @notification = Rubykassa::Notification.new params end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubykassa-0.2.5 | app/controllers/robokassa_controller.rb |