Sha256: f0b5ca43ee5337b16b9e345f07d202c560dc5fc9503c556725c4c2163e053b8d

Contents?: true

Size: 625 Bytes

Versions: 4

Compression:

Stored size: 625 Bytes

Contents

class PaypalController < CheckoutController 
  protect_from_forgery :except => [:confirm] 
  skip_before_filter :persist_gender
  
  def confirm
    # XXX It works!
    #redirect_to checkout_state_path("confirm")
    # but we want this:
    unless current_order
      redirect_to root_path
    else
      order = current_order
      while order.state != "complete"
         order.next
         state_callback(:after)
      end
      #order.finalize!
      flash[:notice] = I18n.t(:order_processed_successfully)
      flash[:commerce_tracking] = "nothing special"
      redirect_to order_path(current_order)
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_paypal_website_standard-0.8.4 app/controllers/paypal_controller.rb
spree_paypal_website_standard-0.8.3 app/controllers/paypal_controller.rb
spree_paypal_website_standard-0.8.1 app/controllers/paypal_controller.rb
spree_paypal_website_standard-0.8.2 app/controllers/paypal_controller.rb