Sha256: 2b2820c64f17901bdbc5296b125d46804c57924bc7257fa0cff959a77ef2d6a6

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

module Catarse
class PaymentStreamController < BaseController
  skip_before_filter :verify_authenticity_token, :only => [:moip]

  def thank_you
    unless session[:thank_you_id]
      flash[:failure] = I18n.t('catarse.payment_stream.thank_you.error')
      return redirect_to :root
    end

    if session[:_payment_token]
      backer = Backer.find_by_payment_token session[:_payment_token]
      session[:_payment_token] = nil
    end
    @project = Project.find session[:thank_you_id]
    @title = t('catarse.payment_stream.thank_you.title')
    session[:thank_you_id] = nil
  end
end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
catarse_core-1.0.0.beta app/controllers/catarse/payment_stream_controller.rb