Sha256: 3061ab0673f1a2a41060c0d511e71b489a061ecbf84379e807b60662efdea590
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 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 request.query_parameters end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubykassa-0.2.6 | app/controllers/robokassa_controller.rb |