diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb index b9eac5a..4cb9807 100644 --- a/app/controllers/spree/checkout_controller_decorator.rb +++ b/app/controllers/spree/checkout_controller_decorator.rb @@ -147,7 +147,7 @@ module Spree @order.update_attribute(:state, "complete") state_callback(:after) # So that after_complete is called, setting session[:order_id] to nil - @order.send(:consume_users_credit) #since we dont rely on state machine callback, we just explicitly call this method for spree_store_credits + @order.send(:consume_users_credit) if @order.respond_to?(:consume_users_credit)#since we dont rely on state machine callback, we just explicitly call this method for spree_store_credits @order.finalize! flash[:notice] = I18n.t(:order_processed_successfully) diff --git a/app/views/spree/shared/paypal_express_confirm.html.erb b/app/views/spree/shared/paypal_express_confirm.html.erb index 879fb42..d7839f9 100644 --- a/app/views/spree/shared/paypal_express_confirm.html.erb +++ b/app/views/spree/shared/paypal_express_confirm.html.erb @@ -3,8 +3,23 @@ <%= raw t("order_not_yet_placed") %>
-<%= render :partial => 'spree/shared/order_details', :locals => {:order => @order} -%> -