Sha256: 59d5cb36efaca7f0bc111db7d5956c4a7450b86d7936359abd291849f69abc38

Contents?: true

Size: 374 Bytes

Versions: 22

Compression:

Stored size: 374 Bytes

Contents

Spree::BaseController.class_eval do
	before_filter :check_current_order
	def check_current_order
		if current_order or session[:order_id]
			order = current_order
			if (order.payment_state == "paid") or (order.payment_state == "credit_owed")
				session[:order_id] = nil
				order.line_items.destroy_all
				flash[:notice] = t(:pp_ws_payment_received)
			end
		end
	end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spree_pag_seguro-1.0.0.beta22 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta21 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta20 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta19 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta18 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta17 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta16 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta15 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta14 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta13 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta12 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta11 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta10 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta9 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta8 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta7 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta6 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta5 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta4 app/controllers/spree/base_controller_decorator.rb.rb
spree_pag_seguro-1.0.0.beta3 app/controllers/spree/base_controller_decorator.rb.rb