diff --git a/app/controllers/checkout_controller.rb b/app/controllers/checkout_controller.rb index 13d9e71d51..be35682a7b 100644 --- a/app/controllers/checkout_controller.rb +++ b/app/controllers/checkout_controller.rb @@ -43,7 +43,7 @@ class CheckoutController < Spree::CheckoutController ResetOrderService.new(self, current_order).call session[:access_token] = current_order.token - flash[:success] = t(:order_processed_successfully) + flash[:notice] = t(:order_processed_successfully) respond_to do |format| format.html do respond_with(@order, :location => order_path(@order)) diff --git a/app/controllers/spree/paypal_controller_decorator.rb b/app/controllers/spree/paypal_controller_decorator.rb index 9ad11927ab..40c0aa46a9 100644 --- a/app/controllers/spree/paypal_controller_decorator.rb +++ b/app/controllers/spree/paypal_controller_decorator.rb @@ -19,7 +19,7 @@ Spree::PaypalController.class_eval do def reset_order_when_complete if current_order.complete? - flash[:success] = t(:order_processed_successfully) + flash[:notice] = t(:order_processed_successfully) ResetOrderService.new(self, current_order).call session[:access_token] = current_order.token